michael2
9/11/2017 - 12:17 AM

This is HTML5 select validation for form with JavaScript backup needed on safari.

This is HTML5 select validation for form with JavaScript backup needed on safari.

<select name="z_THING" required="">
<option selected="selected" value="" disabled="disabled">Please Select THING</option>
<option value="THING1">THING1</option>
<option value="THING2">THING2</option>
</select>
if(document.form2.z_THING.value.length < 1) {alert('Please Select THING');errors++;}