If you need to obtain more than one line of input from the user, use a text area.


For production applications, developers often end up spending a lot more time and code on this task than we would like. NET page framework, it was important to try and make the task of validating input a lot easer than it has been in the past.

In HTML 3.2, validating data is a difficult process.

" Right, there are a lot of non-j Query-based solutions (which you'd avoid since you found j Query) and some j Query-based solutions.

This particular one is one of the oldest j Query plugins (started in July 2006) and has proved itself in projects all around the world.

The following example displays a basic text field and a text area. Click the Launch button to run Text Demo using Java™ Web Start (download JDK 7 or later).

Alternatively, to compile and run the example yourself, consult the example index.

And after all, you don't want to reinvent the wheel, do you?

"But aren't there already a ton of validation plugins out there?

You want to react to more than just a submit event, like keyup and blur.

You may need different ways to specify validation rules according to the server-side enviroment you are using on different projects.

(11 printed pages) Introduction The Problem The Objective The Solution-Overview Client Features What Is a Validator?

Tags: , ,