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

Validating HTML Forms. To get started, you'll need to create a Form instance.

Properties

FAIL

Constant for a failing test.

Type
Number

Description

You can use this when creating custom tests

PASS

Constant for a passed test.

Type
Number

Description

You can use this when creating custom tests

SKIP

Constant for a skipped test.

Type
Number

Description

You can use this when creating custom tests.

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:47:13 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.