I am trying disable the left/right buttons that allow the user to change months. I’ve removed the drop down list of months but can’t get rid of the buttons.
$("#date").datepicker({
changeMonth: false,
changeYear: false,
dateFormat: 'dd/mm/yy',
duration: 'fast'
});
You can effectively disable them using
stepMonthsby making them go nowhere when clicked, like this:You can give it a try here
Or, you could remove the buttons like this:
You can give that a try here, this works because the default
showOnoption isfocus, if you’re using a different event, just bind to that after the.datepicker()call (so its event runs first, you can’t hide what isn’t created yet).