Lets Have a fun with Technology.

BTemplates.com

Follow by Email

Thursday, January 28, 2016

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

0 comments:

Post a Comment