Sagar Mahalle
Sagar Mahalle

Reputation: 41

how to change the color of date time picker in struts2

<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

Answers (2)

sunleo
sunleo

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.

Link for datepicker

     <style>
      .ui-datepicker .ui-widget-content {        background: #999 none;  }
     </style>

Upvotes: 0

Aleksandr M
Aleksandr M

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

Related Questions