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.
Showing posts with label To catch the event from one field and put the same to other field using Jquery. Show all posts
Showing posts with label To catch the event from one field and put the same to other field using Jquery. Show all posts

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"