About Me

My photo
Ernakulam, Kerala, India
I am Sajadh, author of this blog. I run this with loads of passion.
If you are into java, you may find lot of interesting things around ...
Advance thanks for your queries to sajadhaja90@gmail.com.

Friday, 28 December 2012

Live() and Trigger() in JQuery

 To catch the event from one Field and the same event can be transform to other field using function live() and trigger().

jQ('#id1').live(function(){
    jQ('#id2').trigger("click",function(){
    });
});

In above example , event in the field of id= "id1" will transform into other field of id="id2"

No comments:

Post a Comment

You can enter queries here...