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

[Solved] Set the Forecolor to the combobox using Javascript

1 Answer 104 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Karthick Purushothaman
Top achievements
Rank 1
Karthick Purushothaman asked on 12 Aug 2009, 10:29 AM
Hi,

I want to set the forecolor  for the text in the Rad Combo box using the java script.  Please help me to solve this issue.

i am using the following code:

var

 

rcbCat = $find('<%=rcbSugSphereR.ClientID %>');

 

 

if (rcbCat.get_text() != "--Select Category--") {

 

PrdName = rcbCat.get_text();

rcbCat.style.forecolor =

"Red";
 }

Thanks & regards,
Sushanth Mathew

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Aug 2009, 11:33 AM
Hello Sushanth,

You can refer to the following help document which explains on how to set the style for the input element of the combobox using javascript:
Change the appearance of the Input element

Thanks
Princy.
Tags
ComboBox
Asked by
Karthick Purushothaman
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or