I am using a form and on submit
$(document).on('submit','form',function(event){
now I want to stop the form from being submitted to validate. The options I found are
event.preventDefault()
Event.stopPropagation()
return false
throw new Error("Something went badly wrong!");
calling a fake function which does not exist
Would anyone explain which one I should use and are there more methods to stop the execution of Javascript form submission?