hamza Posted March 3, 2010 Share Posted March 3, 2010 i wanted to show structur in select option tag. more then 1 level i wnated to show in drop down list . please tell me how it is possible to show. category and subcategory structure ======================== category |_subcat-1 |_subcat-1 |_subcat-1 |_subcat-1 |_subcat-1 Categroy2 |_subcat-1 |_subcat-1 |_subcat-1 Link to comment https://forums.phpfreaks.com/topic/194004-select-list/ Share on other sites More sharing options...
haku Posted March 4, 2010 Share Posted March 4, 2010 You can't have sub levels in select tags. The best you can do is something like this: <select> <option>Top 1</option> <option>--Sub level 1 A</option> <option>----Sub level 1 B</option> <option>Top 2</option> <option>--Sub level 2 A</option> <option>----Sub level 2 B</option> </select> This gives the appearance of sub levels. Link to comment https://forums.phpfreaks.com/topic/194004-select-list/#findComment-1021181 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.