Home › Forums › JavaScript › Validation › Re: Validation
December 8, 2011 at 8:36 am
#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?