This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Hide options in drop down
Joined: May 01, 2008
May 02, 2008 06:36:00
Hi Every one,
Is there any way to hide the options in a drop down.
As an example, I have a code as
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.
<OPTION style = "display:none">STATE</OPTION>
Thanks in advance.
SaurabhSri (SCJP 1.5)
Joined: Dec 20, 2006
May 02, 2008 07:05:00
document.getElementById("mySelect").options = null;
Author of <a href="http://www.newsinjector.com" target="_blank" rel="nofollow">NewsInjector</a>
subject: Hide options in drop down
Getting the selected option
Select tag 's selection should persist.
How to set a drop down value
problem with drop-down box
How to do a Tool tip in select drop-down?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014