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

disable option

Status
Not open for further replies.

WebRic

Technical User
Sep 21, 2004
95
0
0
GB
Hi all,

Not sure if this needs to be done via javascript or whether it can be done in HTML, but I'd like to be able to disable individual options within a select field.

i.e.

<select name="select" multiple>
<option value="1">opt 1</option>
<option value="2" disabled>opt 2</option>
</select>

How would I go about doing this?
Thanks,

Richard
 
Thanks Monksnake, I'll check that out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top