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

[Solved] Applying background color to telerik MVC combo box using jQuery

0 Answers 22 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Evolving
Top achievements
Rank 1
Evolving asked on 28 Nov 2012, 04:25 PM
Hello,

Could you please help me setting the background color of my MVC combobox using jQuery? I tried few but that didnt work. Any help will be appreciated!!

1. 

 

var combo = $("#ComboID").data("tComboBox");
  
if ($("#ComboID").hasClass("backgroundColorClass");) {
  $("#ComboID").addClass("backgroundColorClass");
}

2.

$("#ComboID").css("border","border details");
$("#ComboID").css("background-color","#color");

So, basically my question is, how can I set the InputHtmlAttributes/ DropDownHtmlAttributes/ HtmlAttributes of the MVC combobox using jquery?

Thanks in advance,
Evolving Techie

Tags
ComboBox
Asked by
Evolving
Top achievements
Rank 1
Share this question
or