aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes <option> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "<option> " Watch "<option> " New topic
Author

<option>

FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
Inside <select> tag I can have some <option> items. Is there a way for me to specify that a specified <option> is not selectable, i.e. when user selects this <option> item, there is no reaction from screen. This is different from disabling the entire <select>.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Well, there's the <optgroup> element, but I don't think that's what you are after.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Some browsers support disabled on an option, by most do not. Best bet is to remove it.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <option>
 
Similar Threads
Help wanted on control select/option by javascript
select> option in html
HFSJ struts Example pgm
Any Suggestion about a small project?
Select problem