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

Home Forums JavaScript Validation Re: Validation


The #next and #finish are the two blue buttons on first/second slide. I like the idea of stopping people progressing – but even with that code, I am still able to submit the form without filling in the departure date field on the last slide.

What I want to do is as well as performing validation on #next and #finish, to perform it when the user clicks submit. i.e. if they click submit, and haven’t filled in the departure date, it doesn’t submit the form and highlights the field with the red border.

Does that make sense? Thank you loads for your help, sorry I haven’t been clear!