Posted By

Turek on 02/29/12


Tagged

jquery click simulate


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrockSamsom


jQuery simulating click


 / Published in: jQuery
 

URL: http://turczynski.com

With setTimeout it actually works.

  1. function click() {
  2. setTimeout( function() {
  3. $( "#id_of_the_container" ).find( ".class_of_the_button" ).click();
  4. }, 100 );
  5. return true;
  6. }

Report this snippet  

You need to login to post a comment.