Simple html5 validation
In this form:
validation in base on html5 input types, required attribute and patterns (if needed),
required and error messages are defined with data-msg-required and data-msg-error attributes,
validation is done when the focus of a field is lost (onBlur event) and when submitting the form,
when the field is invalid, the aria-invalid="true" attribute is added.
error messages (<label>) are linked (aria-labelledby) to the input
My informations:
Fields followed by (*) are required
Optional field:
Lastname:
(*)
Firstname:
(*)
Email:
(*)
Phone number: (0611223344 or +33611223344)
(*)
Civility:
(*)
Select an option
Mrs.
Mr.
Password: (
*
)
Password must be 8+ characters and include letters (at least one Uppercase) AND number(s)
Radio