Select the current date in the DataPicker

1

Colleagues,

How do I make the datePicker the current date be checked and change the previous dates that are disabled? See:

Iwasabletodisablethepreviousdatesusingthecodebelow,buttheyturnblackandconfuseandthecurrentdateisnotmarked.

<!--datepicker--><scriptsrc="plugins/datepicker/bootstrap-datepicker.js"></script>

<script>
//Date picker
$('#datepicker').datepicker({
  autoclose: true,
  startDate: "date"
});
</script>
    
asked by anonymous 18.06.2017 / 23:55

1 answer

1

I managed to resolve. I put the code below:

todayHighlight: true

For more settings, visit this site . You have how to set up your datapicker.

    
19.06.2017 / 00:04