Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> jquery validate + jquery step
asall
post
Post #1





Grupa: Zarejestrowani
Postów: 42
Pomógł: 0
Dołączył: 11.12.2013

Ostrzeżenie: (0%)
-----


  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
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 17:49