just simply add the word select on curInputs of the allNextBtn.click function:
example:
allNextBtn.click(function(){
var curStep = $(this).closest(".setup-content"),
curStepBtn = curStep.attr("id"),
nextStepWizard = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().next().children("a"),
curInputs = curStep.find("input[type='text'],input[type='url'],select"),
isValid = true;
$(".form-group").removeClass("has-error");
for(var i=0; i<curinputs.length; i++){="" if="" (!curinputs[i].validity.valid){="" isvalid="false;" $(curinputs[i]).closest(".form-group").addclass("has-error");="" }="" }="" if="" (isvalid)="" nextstepwizard.removeattr('disabled').trigger('click');="" });="">
Elwyn Elayda () - 7 years ago - Reply 0
That doesn't work on its own. You need to also replace this
if=(!curinputs[i].validity.valid)
with
if (!curInputs[i].validity.valid || curInputs[i].selectedIndex == 0 )
That tests if the dropdown is blank
Philip van den Heever () - 7 years ago - Reply 0
for PrevButton
----
add var allPrevBtn = $('.prevBtn');
and this
allPrevBtn.click(function(){
var curStep = $(this).closest(".setup-content"),
curStepBtn = curStep.attr("id"),
prevStepWizard = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().prev().children("a");
prevStepWizard.removeAttr('disabled').trigger('click');
});
Юра () - 9 years ago - Reply 0
Could someone help me incorporate a previous button on this? It would help quite a bit
Muhammad Tareen () - 7 years ago - Reply -1
does not work for html5 validations with pattern Can you help me? Thank you.
neftalicoasta () - 5 years ago - Reply 0
how to make this form stay in div #step-3 after refresh/post
T. Aditya Maulana () - 7 years ago - Reply 0
It gets an error in IE9!
In line 31 var curInputs can't be recognized...
Any solution?
Alice () - 8 years ago - Reply 0
How could I remove the error message: "please fill out this field" when I press the enter key?
Juan () - 9 years ago - Reply 0
i'm getting the step buttons vertically.. what would be the problem???
john () - 9 years ago - Reply 0
how do i prevent the "<" symbol from being replaced by "& lt;" in the javascript so that the sections do not all appear on 1 page?
Mike () - 9 years ago - Reply 0
i can't find the way to make a button go to a particular step (in a different file). is that possible? any ideas? thanks !
Guayaba Mellado () - 9 years ago - Reply 0