html - IOS Safari <select> element -


i have hierarchal dropdown menu visually differentiates hierarchy using space characters

example

<select>     <option value='1'>top level item</option>     <option value='2'>&nbsp;&nbsp;&nbsp;lower level item</option>     <option value='3'>&nbsp;&nbsp;&nbsp;another lower level item</option>     <option value='4'>another top level item</option> </select> 

this works in browsers except iphone spaces ignored , items shown @ same level.

i'm using reactive design (same dom mobile , desktop) , have decided integrating jquery mobile themed select isn't option.

are there easy work arounds or small plugins might me accomplish ios browsers?

<optgroup> elements not fit b/c of parent options can selected. <optgroup> not allow selecting parent categories best can tell

the core of requirement feature of particular site's navigation must on 1 dropdown element touch friendly.

you might try start hierarchy-divider 0 width joiner / 0 width non-joiner entity using: &zwj; or &zwnj;


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -