This is a migrated thread and some comments may be shown as answers.

Change background color in javascript

2 Answers 127 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 04 Oct 2011, 09:55 PM
hi,

I need to change the background color of a ComboBox in javascript,

I'm not getting,

Can someone help me please?

thanks

2 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 06 Oct 2011, 10:53 AM
Hi Andre,

You could change the background color of the input and drop-down element as shown below:
function pageLoad() {
 
                var combo = $find("Radcombobox1");
                combo.get_inputDomElement().style.backgroundColor = "blue";
                combo.get_dropDownElement().style.backgroundColor = "red";
            }


Greetings,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Andre
Top achievements
Rank 1
answered on 07 Oct 2011, 12:44 PM
Exactly what I needed

thanks =)
Tags
ComboBox
Asked by
Andre
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Andre
Top achievements
Rank 1
Share this question
or