I want to disable all dates before today in a bootstrap datepicker
. I have digged the internet and everyone has this solution but why is it not working in my code?
<input type="text" id="date"/>
$(window).load(function(){
$('#date').datepicker({
minDate:0
});
});