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

Locking drop-down box

Status
Not open for further replies.

Nermal52

Programmer
Sep 18, 2001
3
CA
Hello!

Can anyone please tell me how to lock a drop-down box so that the user cannot select a value or type in the box, but can still see the text clearly (ie: not dimmed, as with the disabled property, but appearing more like the readOnly property).

I have tried readOnly and it doesn't seem to work...the disabled works but doesn't appear dark enough. I also tried changing the fontWeight to "bold" but it still appears dimmed.

Thanks!
 
You could set the onFocus event for the dropdown to blur or give focus to another object on the page
-Tarwn
Quick & Dirty, my phrase of the week
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top