Mark current date in Datapicker

Asked

Viewed 820 times

1

Colleagues,

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

inserir a descrição da imagem aqui

I managed to disable the previous dates using the code below, but they get black and end up confusing and the current date is not marked.

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

<script>
//Date picker
$('#datepicker').datepicker({
  autoclose: true,
  startDate: "date"
});
</script>

1 answer

1


I managed to fix it. I put the code below:

todayHighlight: true

For more settings go to this site. You can configure your datapicker.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.