jgdoncel
12/20/2016 - 12:22 PM

jquery.validate - Focus bootstrap tab with firts invalid element

jquery.validate - Focus bootstrap tab with firts invalid element

...
invalidHandler: function(e, validator){
  if(validator.errorList.length)
    $('a[href="#' + jQuery(validator.errorList[0].element, '#tabs').closest(".tab-pane").attr('id') + '"]').tab('show')
},
...