livefree75 schrieb:
Hello,

I have a form that displays data from a database table, and makes some
of the fields text boxes, so the user can edit them.

These text boxes are required fields.  But if the user deletes the
text and then tabs out of it, the "required" error message does not
come up, until some other validation is done or the form is submitted.

How can I make the "required" error message appear immediately?
Give this a try:

$(...).validate({
 onfocusout: function(element) {
   this.element(element);
 }
});

This should validate elements whenever they lose focus.

Jörn

Reply via email to