Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

disable one of the option

 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but i have done like this :



In my case i cannt give a constant data and value .
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is options object supports disabled property? I am not sure.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by KJ Reddy:
Is options object supports disabled property?


Yes.
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Adeel Ansari:


Yes.


I guess only IE supports this.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64980
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the HTML forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(Why would the server return values you can not select in the first place?)

That would be the question I would ask myself.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic