Please turn on JavaScript. To find out how to do this visit the WebWise JavaScript guide.

Validating HTML Forms

Properties

FAIL

Indicates a failing test.

Type
Number
PASS

Indicates a passing test.

Type
Number
SKIP

Indicates a conditional test didn't pass, so no more tests should be run.

Type
Number

Namespaces

feedback

Collection of functions for displaying validation results to the user

tests

Collection of built-in tests that can be added to validate a form field.

Classes

Form

Create an object to add tests to.

ValidateResult

This is created automatically by the running validation and passed to

Documentation generated by JsDoc Toolkit 2.1.0 on Mon Jul 06 2009 11:46:20 GMT+0100 (BST)

BBC © 2014 The BBC is not responsible for the content of external sites. Read more.

This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.