focusInvalid: function() { if( this.settings.focusInvalid ) { try { $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible").focus().trigger("focusin"); $('html,body').animate({scrollTop: '-=100px'}); $("#step0").show(); $("#step1").hide(); $("#step2").hide(); $("#step3").hide(); $("#step4").hide(); $("#step5").hide(); $("#step6").hide(); } catch(e) { // ignore IE throwing errors when focusing hidden elements } } },
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