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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Headings in a <SELECT>

Status
Not open for further replies.

soho34

IS-IT--Management
Dec 28, 2004
102
US

Hi,

This seems like a pretty simple concept. I want my <Select> options to have headers. When the user clicks on it, I don't want anything to happen (for example, I don't want the heading to be selectable.)

Here's how I thought it should be done, but so far, no dice.
Code:
<select>
    <b>Heading A </b>
    <option>Option A1</option>
    <option>Option A2</option>
    <option selected="selected">Option A3</option>
    <b>Heading B</b>
    <option>Option B1</option>
    <option>Option B2</option>
    <option selected="selected">Option B3</option>

</select>

Thanks in advance for any help you can provide.
soho34
 
Worked like a charm! Thanks a bunch!
 
This was crossposted here:

thread216-1129716

-kaht

...looks like you don't have a job, so why don't you get out there and feed Tina.
headbang.gif
[rockband]
headbang.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top