Reputation: 41
<sx:datetimepicker name="birthDate" required="true"
value="%{employee.birthDate}"
displayFormat="%{#application.dateFormat}"/>
This is my date time picker tag in struts 2 used in jsp
by default it has blue color
can any one help me to change the color of date and time picker
i have used cssStyle { Background:red }
which changes the color of textfield
Upvotes: 0
Views: 1997
Reputation: 10947
Please try this struts 2 uses default css so you can't so try the below link change only css as I mentioned.If you are using struts dojo avoid because it is deprecated.
<style>
.ui-datepicker .ui-widget-content { background: #999 none; }
</style>
Upvotes: 0
Reputation: 24396
You are using <sx:datetimepicker>
tag it means that you are using dojo
plugin. You can change style of datetimepicker
by using different dojo
theme or overriding css styles associated with datetimepicker
.
Upvotes: 1