I have two functions bound to a click event at two different times (using jQuery). The order in which they are fired is significant. They are firing in the correct order. The problem is, when the first function returns false, the second function is still firing!
How can I properly cancel the event?
Example code:
$(document).click(function() {
alert('a');
return false;
});
$(document).click(function() {
alert('b');
});
You will still see the "b" alert message when clicking the page. This is unacceptable!