showing results for - "jquery validation focus field on error"
Stephan
04 Jul 2017
1var validator = $("#test-form").validate({ /* settings */ });
2
3$("#validate").click(function() {
4      if ($("#test-form").valid()) 
5              alert("Valid!");
6      else
7            validator.focusInvalid();
8      return false;
9});