Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

How to set DatePicker PickerStyle BackColor in JavaScript? Options
Ces@rPil
Posted: Friday, June 14, 2013 6:50:35 AM
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.
eo_support
Posted: Friday, June 14, 2013 8:21:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 23,102
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.