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
The form you're trying to access might be dynamically added to your page. You need to use delegate to access that form in that case
Example:
$(document).delegate("#myform","submit",function(){ return false; });