user186585
user186585

Reputation: 512

using jquery Validation

I'm using jquery Validation. I am trying to control where the error message will appear.

How can i do that?

10x

Upvotes: 0

Views: 70

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

You could use the errorPlacement method:

$("#myform").validate({
    errorPlacement: function(error, element) {
        error.appendTo(element.parent("td").next("td"));
    }
});

Upvotes: 1

Related Questions