Please tell me how to disable previous date from current date.
Hi All,I am using this javascript but this is not correct working.
please tell me how to disable previous date from current date.
<script type="text/javascript">
//$(document).ready(function () {
// $(".dDate").datepicker({
// dateFormat: 'dd/mm/yyyy',
// firstDay: 1,
// numberOfMonths: 1,
// minDate: '0',
// onSelect: function () {
// $(this).trigger("onchange", null);
// }
// });
//});
$('.dDate').datepicker(
{
onClick: function (target, cell, date, data) {
target.val(date.getFullYear() + '-' +
date.getMonth() + '-' +
date.getDate());
if (data != null) {
alert(data.message + '\n' + date);
}
}
}
);
</script>
