Triggering onClick Event from JavaScript Using Jquery.

Hello Friend's,

In one of my application I need to call 'Save' button click from Javascript.

Below is approach which I have used to call click event of 'Save' button.


$($get("id_ofsavebutton")).click();

More you can read about this click Events at
http://api.jquery.com/click/

We can also bind this click event css class.

Example :-

$(".buttonclass").click();

Posted in |

0 comments:

Post a Comment