Is there any use to return values from .click()
and .change()
handlers (like return true
or return false
)?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With