How can I remove the buttons to select the past or next month in jQuery datepicker?
I found the same question on SO, but it did not work for me.
I tried this, but without success:
$("#date").datepicker({
changeMonth: false,
changeYear: false,
dateFormat: 'dd/mm/yy',
duration: 'fast'
}).focus(function() {
$(".ui-datepicker-prev, .ui-datepicker-next").remove();
});
This code did the trick 🙂