I\'m trying to add a custom button to the button panel of jQuery\'s datepicker. When I apply the following code though nothing happens:
$(\'.date-picker\')
$(function(){
var pickerOpts = {
showOn: "button"
};
$("#date").datepicker(pickerOpts);
});
A related question "How do you add buttons to a jQuery datepicker in the button panel?" was answered in another post. For an example of how a "Prev Day" and "Next Day" button was added to the button panel, see How do you add buttons to a jQuery datepicker in the button panel?