How can I modify this script to "block" current date in my calendar datepicker popup? I don't want users to pick the current date for my appointment application, ie., no same-day appointments allowed. I'm modifying existing code and do not know javascript well.
$(document).ready(function() {
$(#div_date").hide();
});
$(function () {
$(#apptDate").datepicker({ beforeShowDay: $.datepicker.noWeekends}
);
$("#date_pickup_icon").click(function () {
$("#apptDate").datepicker("show");
});
});
_____________________
I use the jquery library. There is an attribute (excuse the incorrect terminology); "minDate". Default is NULL. How do I use this to specify the blocking of the current date and previous dates.
http://stackoverflow.com/questions/3247656/jquery-ui-datepicker-disable-todays-date-if-today-is-monday