I have a ASP.NET MVC application and I want to focus the first field in error. On submit, if the last field has error and user tries to submit the form, the focus is going to th
You can use eq method.
eq
eq method reduces the set of matched elements to the one at the specified index.
$('.input-validation-error').eq(0).focus();