I have the following code for the jQuery UI datepicker:
$(function() {
$(\".date\").datepicker({
showOn: \'button\',
buttonTe
You can't add an additional class through an option, but it does have a class: ui-datepicker-trigger, so if you just style directly or as a descendant of an identifiable container it'll work, for example:
.ui-datepicker-trigger { color: red; }
//or...
.myContainer .ui-datepicker-trigger { color: red; }
Or, add a different class to the button manually after creating the datepicker (which creates the button):
$(function() {
$(".date").datepicker({
showOn: 'button',
buttonText: "Choose Date",
dateFormat: 'yy-mm-dd'
}).next(".ui-datepicker-trigger").addClass("someClass");
});