Using Jquery I would like to suppress additional logic if my form didn't pass validation,this code work OK,
$( "#myForm" ).submit(function( event ) {
alert( "Form is invalid!" );
event.preventDefault();
});
I am wondering What is the differences between the three methods below and which one to use?
Event.stopPropagation()
Event.cancelBubble()
Event.preventDefault()