I am using jquery form validator to validate all my fields in the form.
In form validator I am using following code to see if a input field has the name minExperience.
errorPlacement: function(error, element) {
if(/*Want to check if the `element` has the name = "minExperience"*/)
{
error.insertAfter($('#skillBtn'));
}
}
So that I can place the error message after $('#skillBtn').
I am not able to figure out what to write in the if condition.
Please help.