Select Option Groups

/ Published in: HTML
Save to your folder(s)

Copy this code and paste it in your HTML
  1. <label for="showtimes">Showtimes</label>
  2. <select id="showtimes" name="showtimes">
  3. <optgroup label="1PM"></optgroup>
  4. <option value="titanic">Twister</option>
  5. <option value="nd">Napoleon Dynamite</option>
  6. <option value="wab">What About Bob?</option>
  7. <optgroup label="2PM"></optgroup>
  8. <option value="bkrw">Be Kind Rewind</option>
  9. <option value="stf">Stranger Than Fiction</option>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.