Skip to content Skip to sidebar Skip to footer

Jquery Mobile Form Validation Not Working Properly

The form should validate and if its not valid, the form should not proceed, but it is automatically transferring the app to another page... HTML
).submit(function (event) { event.preventDefault(); if ($(this).validate({ rules: { ename: { required: true }, descevent: { required: true }, date: { required: true }, time: { required: true }, } }).form()){ alert("success"); } else { return false; } });

Post a Comment for "Jquery Mobile Form Validation Not Working Properly"