Compared to jQuery 1.4.2, repeating event handlers can be bound to an element rather than to garbage. For instance:
function test(){ alert("Hello"); } $("button").click( test ); $("button").click( test );
When a button is pressed, two warnings are called up.
In jQuery 1.4.3, you can now pass "false" instead of an event handler. This will bind an event handler equivalent to: function(){ return false; } function(){ return false; } . This function can be removed later by calling: .unbind( eventName, false ) .
I think this can help you. thanks
source share