I write a jQuery plugin the first time and I'm wondering if there is a way to stop jQuery from running the next attached events.
Example:
$(this).submit(function(){
return $(this).do_some_validation();
}
If validation didn't pass (i.e. the function returned false
), the form should not be submitted, but if there are any other event handlers attached, only last handler return value can prevent form from being submitted.