Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to Choose an optgroup?

Status
Not open for further replies.

PhoenixD

Programmer
Aug 19, 2007
21
US
So, I'm building a category structure for a directory type of site, and I thought optgroups would be a great way of dividing up the categories (visually), but I was hoping that there was a way I could make it so they could choose the optgroup?

Or is there another solution?

Thanks,
Kerry
 
Hi

Choose the [tt]optgroup[/tt] ? That sounds like entering value into a [tt]fieldset[/tt]... It is just a logical delimiter, does not represent a value. What do you want more exactly ?

Feherke.
 
Yeah... I was hoping I could change that.

I want to categories options in an easy way, but the top category needs to be choosable as well. For example:

Arts
Music
Painting
Poetry
Writing
Education
Higher Education
Instructional Facilities
Magazines
Websites

But someone may need to choose the overall category of "Education".

Any idea?
 
Code:
[b]Arts[b]
    [!]All Arts[/!] 
    Music
    Painting
    Poetry
    Writing
[b]Education[/b]
    [!]All Education[/!]
    Higher Education
    Instructional Facilities
    Magazines
    Websites
Nothing fancy, but there is not many more options than doing something like this.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Ok, thanks, that'll have to do unless I really want to go out of my way ^_^

-Kerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top