Jump to content

select list


hamza

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.