Is it possible to make modify jQuery UI Datepicker to only allow users to select, for example, Mondays?
Here you go: Mondays are not selectable:
$(document).ready(function(){
$('input').datepicker({beforeShowDay: function(date){
return [date.getDay() != 1, ''];
}});
});
Functioning example you can play with here: http://jsfiddle.net/RaYZ5/19/.
API documentation: http://docs.jquery.com/UI/Datepicker#event-beforeShowDay
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