jQuery Tutorial plus Question:

Download Job Interview Questions and Answers PDF

How to programmatically trigger a click event that's being handled by jQuery?

jQuery Interview Question
jQuery Interview Question

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();

Download jQuery Interview Questions And Answers PDF

Previous QuestionNext Question
Advantages of jQuery.How to scroll smothly to a div using jquery?