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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.