Home › Forums › JavaScript › Validation › Re: Validation
December 7, 2011 at 8:48 am
#92112
Member
It does work exactly like you think it does :p
http://jsfiddle.net/pFduv/11/
You just need to add
if($('.step').eq(current - 1).find('.required').val() == '' ){
alert('no.');
return false;
}
to the buttons you want to disable if the required fields aren’t filled out.