yeah so ive never done this without a plugin….this is the code im working with..
Any browser that supports HTML5 form validation can do this natively. I’ve taken your example and have added attributes which trigger validation.
The “`required“` attribute is what triggers validation and then you also have different types available for form fields, such as “`number“`, “`email“` etc etc. I encourage you to try and having a read of the [spec](http://www.w3.org/html/wg/drafts/html/master/forms.html#the-form-element “spec”).
I would recommend validating the form server side with PHP. I have an UUUBER easy tutorial in a book.
You must be logged in to reply to this topic.