1. focusInvalid: function() {
  2. if( this.settings.focusInvalid ) {
  3. try {
  4. $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible").focus().trigger("focusin");
  5. $('html,body').animate({scrollTop: '-=100px'});
  6.  
  7. $("#step0").show();
  8. $("#step1").hide();
  9. $("#step2").hide();
  10. $("#step3").hide();
  11. $("#step4").hide();
  12. $("#step5").hide();
  13. $("#step6").hide();
  14.  
  15.  
  16. } catch(e) {
  17. // ignore IE throwing errors when focusing hidden elements
  18. }
  19. }
  20. },


jest to lekko zmodyfikowany kod jQuery Validation Plugin 1.9.0

element

$("#step0").show();
$("#step1").hide();
$("#step2").hide();
$("#step3").hide();
$("#step4").hide();
$("#step5").hide();
$("#step6").hide();

nue muszę chyba tłumaczyć , chce uzyskać opcje w której pobieram nazwę DIV w którym znajduje się ostatni występujący błąd

poradziłem sobie sam