2011-01-10 4 views
1

jQuery formwizard(http://thecodemine.org/)では、入力に基づいてフォームウィザードを分岐することができます。私はブランチに再参加することができるかどうかを判断しようとしています(最後のステップだけでなく)。jQuery formwizardを使用して分岐を再結合しますか?

ステップ1への入力に基づいて、私は別のステップ2をユーザに提示したいと思う。しかし、ステップ2の後、残りのステップ(ステップ3,4,5など)はすべて同じでなければならない。

はどのようにこれを行うことができますか?

ありがとうございます!

答えて

3

これは、単に「2番目」のステップの1つにリンクを使用することになります。これは、隠された入力フィールドをclass = "link"で指定し、次のステップのIDに値を設定することによって行われます。このように(「第二段階」を参照してください):

<div class="step" id="first"> 
    navigates to either second or third step depending on what is selected in the dropdown 
    <select class="link" name="firstlink" id="firstlink"> 
     <option value=""></option> 
     <option value="second">go to second</option> 
     <option value="third">go to third</option> 
    </select> 
</div> 
<div class="step" id="second"> 
     uses a link to go to fourth step 
     <input class="link" value="fourth" /> 
</div> 
<div class="step" id="third"> 
     falls through to fourth steo 
<div> 
<div class="step" id="fourth"> 
     common step 
<div> 

ホープこれは

+0

ができます。これは、私が探していたまさにです。ありがとう! – Vinay

関連する問題