JavaScript
  Home arrow JavaScript arrow Using Rangelength, Min and Max with the Va...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Using Rangelength, Min and Max with the Validator jQuery Plug-in
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-10-30

    Table of Contents:
  • Using Rangelength, Min and Max with the Validator jQuery Plug-in
  • Review: the minlength and maxlength options
  • Checking length ranges with the rangelength option
  • Checking numeric ranges with the min and max options

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using Rangelength, Min and Max with the Validator jQuery Plug-in


    (Page 1 of 4 )

    When it comes to validating web forms in the client, one of the most effective and elegant applications that can be used nowadays is the Validator jQuery plug-in. It's a compact and powerful piece of software written by Jörn Zaefferer that allows you to check data collected through online forms with ease in a truly unobtrusive way.

    So, if you’re particularly interested in learning how to put this handy plug-in to work for you in a short time, then you should take a look at this group of articles. In them you’ll find a comprehensive guide that will show you how to master the plug-in’s basic features, and how to use its numerous additional options to validate user-submitted data in a stricter fashion. This is the third part of a seven-part series.

    And now that you've been introduced to the subject of this article series, it’s time to review the topics that were discussed in the last tutorial. In that installment I went through the development of a couple of basic examples that demonstrated how to use the “minlength” and “maxlength” options provided by the Validator program for specifying the minimum and maximum lengths for certain fields of the form being validated.

    More concretely speaking, those examples showed how to utilize these arguments both separately and in conjunction. However, the Validator plug-in offers an abbreviated option that allows you to check if data entered in a particular form field is within a specified length range. Not surprisingly, this option is called “rangelength.” There are also a few other arguments that can be used for specifying a numeric range. Therefore, in this third part of this series, I’ll be taking a close look at them, as usual by means of a hands-on approach.

    So let's continue exploring the arguments provided by the Validator plug-in. Let’s get started!

    More JavaScript Articles
    More By Alejandro Gervasio


       · The jQuery Validator plug-in provides a few other arguments that can be used for...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek