I'm working with html5 and need to validate one field on my form depending on another.
I have a% field of% named Document Type , with three possible options (BI, Dire, passport) and a different Document Number field. I need that when an option that is selected in <select>
(eg passport), filling in the Document Number field will only accept passport characters and becomes mandatory.