posted 14 years ago
Hi Every one,
Is there any way to hide the options in a drop down.
As an example, I have a code as
<SELECT>
<OPTION>NAME</OPTION>
<OPTION>REG.NO</OPTION>
<OPTION>STATE</OPTION>
</SELECT>
In this I want to hide option STATE. I have tried display property of style (Please have a look at below code), its working in Firefox Mozilla but not in IE.
<SELECT>
<OPTION>NAME</OPTION>
<OPTION>REG.NO</OPTION>
<OPTION style = "display:none">STATE</OPTION>
</SELECT>
Thanks in advance.
Regards
SaurabhSri (SCJP 1.5)