Rank: Newbie Groups: Member
Joined: 1/3/2013 Posts: 6
|
hi,
I want to set the PickerStyle.BackColor of DatePicker via javascript, I am using this script but it does not work.
eo_GetObject("datepicker").css("background-color", "#FF3300")
Need your help.
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Hi,
You can't do that. eo_GetObject returns a JavaScript object, not a DOM object. So you can't modify CSS on that object directly. If you wish to modify the drop down style, you can view the generated HTML source code, find the ID of the drop down element (it should be an DIV with ID yourclientid_Div, where "yourclientid" is the ClientID of your DatePicker control), then modify CSS on that element.
Thanks!
|