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!

Disable selectbox

Status
Not open for further replies.

greyone

Programmer
Dec 14, 2000
200
CA
is there any way to disable a select box. Well i want this to run on Netscape too. I know of the disabled property of IE but i want to make it cross browser. Is there any way.
Please help
 
Try using the blur() method when you want to disable a form item in Netscape browsers.

<FORM>
<SELECT NAME=&quot;mySelect&quot; ONFOCUS=&quot;this.blur()&quot; DISABLED>
<OPTION NAME=&quot;item1&quot; VALUE=&quot;1&quot;>Value 1</OPTION>
<OPTION NAME=&quot;item2&quot; VALUE=&quot;2&quot;>Value 2</OPTION>
<OPTION NAME=&quot;item3&quot; VALUE=&quot;3&quot;>Value 3</OPTION>
</SELECT>
</FORM>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top