Я перейду к <fieldset>
с классом "secound"
, но прыжок не работает. Что не так в моем коде? Извините за мой английский, и я надеюсь, вы можете мне помочь?
$(".next").click(function(){
textnext = "next1";
current_fs = $(this).parent();
next_fs = $(this).parent().next();
if(textnext == $(".next").val()){
next_fs = $(this).parent(".secound").next();
}
next_fs.show();
}
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<fieldset style="height:100vh">
<input type="button" name="next" class="next action-button" value="next1" />
</fieldset>
<fieldset style="height:100vh" class="first">
<input type="button" name="next" class="next action-button" value="Next" />
</fieldset>
<fieldset style="height:100vh" class="secound">
<input type="button" name="next" class="next action-button" value="Next" />
</fieldset>
вам не хватает) в next_fs.show(); } вы должны написать next_fs.show(); }) – Bak
Это код, и я не перейду к следующему набору полей. я перейду к пользовательскому набору полей с классом. http://thecodeplayer.com/walkthrough/jquery-multi-step-form-with-progress-bar – mirko