Which framework would you choose to validate forms in a jQuery Mobile app? In addition my webapp runs in the PhoneGap native wrapper on iPhone and Android.
There are numerous jQuery form validation frameworks out there - but from your experience what works well with the mobile version of jQuery?
Criteria that would be interesting in the mobile context:
jQuery Validation is a javascript based plugin that helps you implement a powerful client side validator to your form elements that validate the value ( name, email, address, etc..) your user input when submitting.
fn , so simply check whether it exists or not; if (typeof jQuery. fn. validationPlugin === "function") { // It's loaded } else { // It's not. }
UnobtrusiveJavaScriptEnabled" property value back to false and create a new file in "Scripts" folder and name it "script-custom-validator. js". Add the Jquery validator code in it as shown below i.e. The above piece of code attaches my account register form with jQuery form validator by using form ID.
try this one: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ it worked pretty neatly for me,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With