I\'m running into a bit of trouble while trying to cancel the submit of a form. I\'ve been following this tutorial (even though i\'m not making a login script), and it seems
You have to do a sort of 'double return', or in other words, you have to return what is returned. So, you have your html:
Than you just have a jquery function that is called onsubmit as you see above:
function cancelSubmit() {
return false; // return true if you want submission to carry through
}
You can put any sort of conditionals in the function above. It seems you simply want to cancel it though. Hope this helps for others that come across this answer.