Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Mobile Form Validation - Which Plugin to choose?

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:

  • touch-enabled notification messages - in case of wrong validation the message is ideally optimized for small screen estate
  • message in place with the wrong form field
  • offline functionality - since the PhoneGap app runs occasionally without network access
like image 751
Michael Schmidt Avatar asked Jun 14 '11 22:06

Michael Schmidt


People also ask

What is JavaScript validation plugin?

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.

How do you check if jQuery validate is working?

fn , so simply check whether it exists or not; if (typeof jQuery. fn. validationPlugin === "function") { // It's loaded } else { // It's not. }

How we can use jQuery validation plugins in MVC?

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.


1 Answers

try this one: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ it worked pretty neatly for me,

like image 159
Umer Hassam Avatar answered Sep 19 '22 07:09

Umer Hassam