O'Reilly logo

Dreamweaver CS6 Mobile and Web Development with HTML5, CSS3, and jQuery Mobile by David Karlins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating form fields with Spry validation

Validation means testing form data before it is submitted to a server (or sent to an e-mail address). That's a valuable thing. For example, if your form is collecting e-mail addresses for e-newsletter subscriptions, it won't do for people to submit the form without an e-mail address. Beyond that, validation can look at the characters entered into an e-mail address field and verify that what is in the field at least looks like an e-mail address.

There are essentially three techniques for validating form data as follows:

  • Server-side scripts can validate content once it is sent to the server
  • HTML5 provides some validation tools, but they are not yet supported universally, even in newer versions of some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required