Stop date from being selected after postback
-
$(document).ready(function () {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args) {
$('#mdp-demo').multiDatesPicker({
dateFormat: "y-m-d"
});
$("#body_Button").click(function () {
var dates = $('#mdp-demo').multiDatesPicker('getDates');
$('#mdp-demo').multiDatesPicker('resetDates', 'disabled');
})
}
});
The problem i have is after postback (once the user has selected a date, clicked the button to add to another control) today's date is automatically selected.
i added this line
- $('#mdp-demo').multiDatesPicker('resetDates', 'disabled');
but made no difference.
How could i stop todays date being selected after postback?