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

How to differentiate titles in a drop-down menu

Status
Not open for further replies.

dip

Programmer
Aug 15, 2000
20
SG
Hi,

We have created a drop down menu. Well is there any way we can differentiate between the title(which is not clickable)and the sub title which is clickable.


<td><select name=&quot;menulist&quot; size=&quot;1&quot; style=&quot;background-color: #999999; color: #000000; font-weight: normal; text-align: center; vertical-align: top; font-family: verdana, arial; font-size: 9pt&quot; onchange=&quot;doMoveBrowser(this.form)&quot;>
<option disabled value=&quot;&quot;>Take me directly to:
<option disabled value=&quot;&quot;>-------------------------------------------
<option value=&quot;download/tertiary_form.pdf&quot;>Download the Form
<option disabled value=&quot;&quot;>-------------------------------------------
<option disabled value=&quot;&quot;>School of Computer Science
<option value=&quot; Communication Design
<option value=&quot; Interior Design
<option value=&quot; Fashion Design
<option disabled value=&quot;&quot;>-------------------------------------------
<option disabled value=&quot;&quot;>School of Arts
<option value=&quot; Arts Management
<option value=&quot; Ceramics
<option value=&quot; Glass & Architectural Glass
<option value=&quot; Jewellery & Metalsmithing
<option value=&quot; Painting
<option value=&quot; Printmaking
<option value=&quot; Sculpture

<option disabled value=&quot;&quot;>-------------------------------------------<!-- <OPTGROUP LABEL=&quot;optiongroup&quot;>
<OPTION LABEL=&quot;item01&quot;>item 01</OPTION>
// -->
</select><br>

How do I differentiate between titles like Download the form, School of Computer Science and School of Arts from their sub categories. In PC we are not able to differentiate them but in Mac we are able to differentiate them as the color is different and the user knows that the title is not clickable. Are there any other way I could solve this problem.

Thank You.
dip.
 
Put a style tag in the options that are disabled with a different font color, i.e.:
Code:
<option disabled style=&quot;color:#aaaaaa&quot; ...>
However, I tried the disabled tag on an option and it doesn't seem to actually disable it. But... the color thing works anyway.
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top