Forums

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

Home Forums JavaScript Validation Re: Validation

#92193
Brightonmike
Member

I’m confused. The only way we were able to validate the departure field was by adding this:

            if ( !$('#depdate').val() ) {
alert('Please complete the departure date.');
return false;
}

The rest of the form is checked using:

        if($('#slidequoteform').data('errors')){
$('#errorbox').css('display','block');
return false;
}

which doesn’t check the fields on the last slide hence the above?