How to make a two-level menu?

<label>Адрес </label> <select> <option>район 1</option> <option>район 2</option> <option>район 3</option> <option>район 4</option> </select> 
  • one
    Actually nothing! - Artem

2 answers 2

<sarcasm> How to make a menu from the list? </sarcasm>

Если вы хотите так: Район 1 --улица 1 --улица 2 Район 2 --улица 3 --улица 4

Add markers to the item text. If you want the user to not select the item "Region 1", handle either the "onChange" event of the select. Either make 2 drop-down lists of Ajax and other buns.

  • and what are the markers? - iGlock
  • one
    What are you all the city here. If a person does not know how to arrange lists, but uses a drop-down select element for a form for this, then writing answers here is useless. - Artem

Look towards the optgroup .