I want to keep the button panel but I do not want the ‘Today’ or ‘Done’ buttons
jquery:
$(document).ready(function () {
$(".datepicker").datepicker({
showOn: "button",
buttonText: "Date",
showButtonPanel: true
});
});
html:
<div>
<label for="start">Start</label>
<input id="start" type="text" class="datepicker"/>
</div>
<div>
<label for="end">End</label>
<input id="end" type="text" class="datepicker"/>
</div>
UPDATE
apparently the solution I provided is kinda outdated. Please see the answer below for a working fix: https://stackoverflow.com/a/24806307/959041
you should add the option
so you have
UPDATE
to remove the buttons but be able to add other buttons you can use the
beforeShowevent. So you have something likesee http://jqueryui.com/demos/datepicker/#buttonbar for the documentation