I want to prevent a user from choosing previous dates thus disable previous dates in my datepicker. I am using bootstrap-datepicker from http://www.eyecon.ro/bootstrap-datepicker .
I called the javascript like so
<script>
$(function() {
$( ".mydatepicker" ).datepicker({
format:'yyyy/mm/dd'
});
});
</script>
The validation of the date is not supported (as of now) but the plugin provides events that you can listen to : in this case, the
changeDateevent.Here is a demo (jsfiddle) with a working example.