DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

JavaScript Form Field Validation

03.29.2009
| 2413 views |
  • submit to reddit
        // description of your code here

property = oForm1.addProperty(
{ name:"businessName"
, friendlyName:"Business name"
, required:true
, minimumLength:2
, maximumLength:40
, trim:true
, onerror:myUserDefinedValue1
, onvalidate:myUserDefinedValue2 } );

Download code here http://www.clickfind.com.au/javascript-form-validation