Jquery event handlers return values

return false; will stop the event from bubbling up AND suppress the default action.

In otherwords, returning false is analogous to these two lines

event.stopPropagation();
event.preventDefault();

For events that bubble and are cancelable, at least.

Leave a Comment