Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Validation Re: Validation

#92112
jamygolden
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.