How do you copy an event handler from one element to another? For example:
$(\'#firstEl\') .click(function() { alert(\"Handled!\");
You might be interested in the triggerHandler method
// here's where the magic happens //$('#secondEl').click = $('#firstEl').click; // ???? $('#secondEl').click(function() { $('#firstEl').triggerHandler('click'); });