• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ListBox

 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I need to change the default color(blue) of the listBox to brown color.
Anybody can help me out with code or some links.

Thanks in advance
A.Ramya.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which color? The background? The text?
 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to change the border color(blue which is default) of the text box that appears with the dropdown arrow to brown color.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried setting the border attirbutes of the elements via CSS? If that doesn't do it for you, it's unlikely you are going to be able to adjust the appearance to your desires.
 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bear .....I am not able to do that using CSS.
I read in one forum that it is not possible to set the border of listBox especially in IE browsers.But what to know whether there is any other alternative to do this,like by using javascript

Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript has no control just like CSS has no control.

You can apply styles to the options themselves also so that might be something else you want to try to play with.

Eric
 
meena latha
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not sure how to do that.Can u give a sample code for applying style attribute to select.

Thanks in advace.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic