JQuery Developer Question:
Download Job Interview Questions and Answers PDF
How programmatically trigger a click event that's being handled by jQuery?
Answer:
We can fire or trigger any click event programmatically by using below methods.
jQuery('#YourElementID').trigger('click');
OR
$('#YourElementID').trigger('click');
OR
jQuery("#YourElementID").click();
OR
$("#YourElementID").click();
jQuery('#YourElementID').trigger('click');
OR
$('#YourElementID').trigger('click');
OR
jQuery("#YourElementID").click();
OR
$("#YourElementID").click();
Download JQuery Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
How you print some thing on console using jquery? | Explain Jquery $.ajax() method? |