You need a custom function that you can later connect to the form.For more information about creating a function, see JScript Functions.In addition, this article assumes a general understanding of HTML and Java Script, although a thorough understanding is not required.For more information about HTML and Web scripting, see one or more of the following references.(16 printed pages) Introduction Getting Started Writing the Validation Script Connecting the Form to the Script Associating Form Fields with Custom Script Code Listing Conclusion When you create forms, providing form validation is useful to ensure that your customers enter valid and complete data.
Both Java Script and JScript are ECMAScript-compliant languages.
In order to access your form fields in code, you need to assign names to the form and each of the fields. For more information see, NAME Attribute | name Property.