Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Proof of concept that modern browsers will enforce select required, default option disabled on form submit
<!doctype html>
<html lang="en">
<form method="GET" action="">
<select name="q" required>
<option value="" disabled selected>Pick an option</option>
<option value="duck">Duck</option>
<option value="duck">Cat</option>
<option value="duck">Bear</option>
<input type="submit"></input>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment