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


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56528
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15362
    
    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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: <option>
 
Similar Threads
select> option in html
Any Suggestion about a small project?
Help wanted on control select/option by javascript
Select problem
HFSJ struts Example pgm