I am writing a jQuery plugin for the first time, and I am wondering if there is a way to stop jQuery from triggering the following connected events.
Example:
$(this).submit(function(){
return $(this).do_some_validation();
}
If the validation fails (i.e. the returned function false), the form should not be submitted, but if there are any other event handlers, only the return value of the last handler may prevent the form from being submitted.
source
share