Just after a check to make sure one hidden field is not empty.
if($('#cal_startdate').val('')) {
alert('Please select a start date') }
else { form.submit }
That isn’t quite right. I’d rather it was an onsubmit action.
Any ideas,
Marvellous
EDIT
You’ll want to attach the validation to the
submit()event handler. If data is valid, return true – else, return false.