Return to Snippet

Revision: 1116
at September 12, 2006 00:22 by TC


Initial Code
$("#my-form input[@type='text']").blur(function() {
var query = {};
query[this.name] = this.value;
$.post("/path/to/your/validation.php", query, function(response) {
// do something like changing a css class, disable submit...
)};
});

Initial URL
http://beta.plazes.com/register/

Initial Description
Found on the jquery mailing list: http://jquery.com/discuss/2006-April/004625/
The url shows it in action, checking text when you move away from a field.

Initial Title
Use jQuery to validate form text

Initial Tags
form, jquery

Initial Language
JavaScript