I have two functions related to the click event two different times (using jQuery). The order of their dismissal is significant. They shoot in the correct order. The problem is that when the first function returns false, the second function still fires!
How can I cancel the event correctly?
Code example:
$(document).click(function() { alert('a'); return false; }); $(document).click(function() { alert('b'); });
When you click on a page, you will still see a warning message "b". This is unacceptable!
jquery javascript-events event-handling
Josh Stodola Mar 16 '09 at 23:13 2009-03-16 23:13
source share