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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "disable one of the  option " Watch "disable one of the  option " New topic
Author

disable one of the option

Joe Jose
Ranch Hand

Joined: Jan 14, 2004
Posts: 125
Hi,

I am working on a web application using jsp. In several jsp pages got a drop down list. Now a requirement came that they want to disable one of the options in that drop down list. Here, my problem is I have done that drop down list using tag library and the data is coming from database, how can I disable in of them disable ? Its a customer list , what i done is when i select a customer name, we actually get is , the id of that particular customer. Am not sure whether am clear. Can anybosy give me a slolution for this ? If its not clear, please feel free to get back.

Thanks,
Joe
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
I guess you can not disable just few options in drop down box. You can disable entire drop down box but not some options.
Joe Jose
Ranch Hand

Joined: Jan 14, 2004
Posts: 125
but i have done like this :



In my case i cannt give a constant data and value .
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Is options object supports disabled property? I am not sure.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by KJ Reddy:
Is options object supports disabled property?


Yes.
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Originally posted by Adeel Ansari:


Yes.


I guess only IE supports this.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

Moved to the HTML forum.


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

Joined: Nov 08, 2001
Posts: 15376
    
    6
(Why would the server return values you can not select in the first place?)

That would be the question I would ask myself.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disable one of the option