So, I basically want to do something like this: http://jsfiddle.net/bUV6S/1/ …
But I want to do it using the validate.js. Is it possible to target multiple textboxes using:
errorPlacement: function (error, element) {
error.appendTo($("#textUsername"));
}
…in some way? Thanks.
You can append to multiple elements like this:
Here is the documentation link for “Multiple Selectors”: http://api.jquery.com/multiple-selector/
Here is a jsfiddle appending to multiple elements: http://jsfiddle.net/jasper/Wa8EA/