dinesh dinesh

dinesh dinesh

  • NA
  • 4
  • 5.8k

how to disable the previous dates from boot strap datepicker

Nov 26 2014 12:38 AM
<script type='text/javascript'>
$(window).load(function () {
$('#<%=txtDOE.ClientID%>').each(function () {
var $picker = $(this);
$picker.datepicker();
var pickerObject = $picker.data('datepicker');
$picker.on('changeDate', function (ev) {
$picker.datepicker('hide');
});
});
});
</script>

Answers (3)