Book Image

jQuery for Designers Beginner's Guide Second Edition

By : Natalie Maclees
Book Image

jQuery for Designers Beginner's Guide Second Edition

By: Natalie Maclees

Overview of this book

Table of Contents (21 chapters)
jQuery for Designers Beginner's Guide Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – validating form values on the fly


We'll continue working with the form we've been creating through the last three sections. Perform the following steps to validate user entry into the form:

  1. The first thing we'll do is download the Validation plugin and get it attached to our page.

    Head over to http://jqueryvalidation.org/ and click on the Download button in the Files section to download a ZIP file.

  2. Open up the ZIP file and take a look at what we've got.

    There's a lot going on here—there are several different JavaScript files, some demos, a change log, and so on. Remember how I said this plugin is powerful and can handle lots of different approaches to validation? That's what all this is for—handling form validation in just about any old crazy situation you might find yourself in.

    Luckily, though, our situation is pretty simple, so we don't have to do anything complicated.

  3. Inside the dist folder, find jquery.validate.min.js and copy it to your own scripts folder. Then, attach...