I\'m trying to use \'errorPlacement\' from jQuery Validation DOCS:
$(\"#myform\").validate({ errorPlacement: function(error, element) {
Since you want to insert the error message before the invalid element, use insertBefore():
errorPlacement: function(error, element) { error.insertBefore(element); }