I have the following code for the jQuery UI datepicker:
$(function() {
$(\".date\").datepicker({
showOn: \'button\',
buttonTe
Make it become a jQuery UI button since you already have the framework loaded ;)
http://www.robertmullaney.com/2011/08/26/make-jquery-datepicker-use-ui-button/
Disclaimer: My Blog
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");
});