How do I hide the prev/today/next navigation in jQuery DatePicker?
I'm happy with just the Month and Year drop down boxes.
Also how do I disable the animations?
@tvanfosson - I already tried hideIfNoPrevNext
but that only works if you don't have a date range that spans two months.
The duration option did the trick at turning off the animations though.
Cheers.
You can find the options for the DatePicker control at http://docs.jquery.com/UI/Datepicker/datepicker#options. Specifically, I think you want to set hideIfNoPrevNext to true and set duration to ''.
$('#cal').datepicker( { hideIfNoPrevNext: true, duration: '' } );
Just hide buttons
$("div.ui-datepicker-header a.ui-datepicker-prev,div.ui-datepicker-header a.ui-datepicker-next").hide();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With