Validating Ranges, Emails, and URLs with jQuery`s Validator Plug-in
(Page 1 of 4 )
In this fourth part of a seven-part series on the jQuery Validator plug-in, I explain how to use the “range,” “email” and “url” options provided for checking numeric ranges, URLs and email addresses. Using these arguments is an intuitive process that can be learned in a very short time.If you ask yourself what features make a form validation JavaScript program the choice of many web designers, the answer will probably be that it should be easy to use, be packaged with a decent set of checking methods, and be utilized in a really unobtrusive way.
Well, fortunately there’s a program like this available for free -- it’s a handy jQuery plug-in called Validator. Indeed, this plug-in is a powerful application that allows you to check online forms in all sorts of clever ways, without having to mess up your web pages' markup with ugly and annoying JavaScript event handlers.
Logically, if you've already read all of the preceding articles of this series, then you have some solid knowledge of how to use the Validator plug-in to check data collected through HTML forms. In earlier tutorials I explained how to use certain options for validating empty strings, length ranges and numeric values as well.
But, if all of these abilities aren’t good enough for you, then let me tell you that Validator comes bundled with another bunch of features that permit you to validate numeric ranges, email addresses and URLs in a truly straightforward fashion. Therefore, if you’re interested in learning how to accomplish all of these tasks using the plug-in, in this fourth part of the series I’ll be discussing in depth the implementation of its “range,” “email” and “url” options, so you can use them when checking your own web forms.
Are you ready to continue exploring the capabilities of the Validator jQuery plug-in? Then click on the link below and we'll get started.
Next: Review: the rangelength, min and max options >>
More JavaScript Articles
More By Alejandro Gervasio