Strange, is there no possibility to put several binds in jquery, on one element?
$('input').click(clickfn).click(clickfn)
I am using 1.3.2
function clickme() { alert('click me') }
$('.click', mod).bind("brrr", clickme).bind("brrr", clickme)
.click(function() { $('.click', mod).trigger("brrr"); });
This is not working also. Executes one time.
What you have there should work just fine… it does for me (also with jQuery 1.3.2). Try this:
When you click the
inputelements, you should see consecutive alerts appear. Perhaps you are returningfalsein the first function? This would stop event propagation, so the second handler wouldn't be fired.As an aside, I see you're doing this to
inputelements, so you probably want to use thefocusevent instead ofclick.