2013-11-15 2 views
0

Я использую JQuery jWizard из here Thi моя инициализации:JQuery Jwizard получить текущий шаг

jQuery("#jWizardResourceCreate").jWizard({ 
     counter: { enable: true }, 
     effects: { enable: true }, 

    }); 

У меня есть 4 шага:

<div id="jWizardResourceCreate"> 
    <div id="step1"> 

    </div> 
    <div id="step2"> 

    </div> 
    <div id="step3"> 

    </div> 
    <div id="step4"> 

    </div> 
</div> 

Пожалуйста, помогите мне, чтобы получить текущий индекс шага, я действительно нужно, но не может найти, как это сделать.

ответ

0
var dataJwizardIdCurrentStep = jQuery(".jw-steps-wrap >div").filter(function() { 
        if (this.style.display == 'block') { 
         return (this.style.display == 'block'); 
        } 
       }); 
Смежные вопросы