How to make a two-level menu?
<label>Адрес </label> <select> <option>район 1</option> <option>район 2</option> <option>район 3</option> <option>район 4</option> </select>
How to make a two-level menu?
<label>Адрес </label> <select> <option>район 1</option> <option>район 2</option> <option>район 3</option> <option>район 4</option> </select>
<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.
Look towards the optgroup .
Source: https://ru.stackoverflow.com/questions/69323/
All Articles