Monday, 15 August 2011

html - Requiring dropdown selection in Chrome -



html - Requiring dropdown selection in Chrome -

using "required" on dropdown form element "disabled" selection works in firefox prevent users submitting form without selecting dropdown list, not in chrome. can help?

<select id="topic" class="form-control" required="required"> <option disabled selected>select genre</option> <option>all genres (whatever works)</option> <option>boogers</option> <option>cheese</option> <option>dumplings</option> </select>

this may work

<option selected="true" disabled="disabled">select genre</option>

src: how show disable html select alternative in default?

html google-chrome

No comments:

Post a Comment