Change background color in javascript

3 posts, 0 answers
  1. Andre
    Andre avatar
    2 posts
    Member since:
    Nov 2010

    Posted 04 Oct 2011 Link to this post

    hi,

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

    I'm not getting,

    Can someone help me please?

    thanks

  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 06 Oct 2011 Link to this post

    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
  3. Andre
    Andre avatar
    2 posts
    Member since:
    Nov 2010

    Posted 07 Oct 2011 Link to this post

    Exactly what I needed

    thanks =)
Back to Top