2
I’m using Bootstrap Datepicker in mm/yyyy format, but I’m having trouble defining the longest possible date.
The Code is like this:
$('#mesVigencia').datepicker({
format: "mm/yyyy",
startView: "months",
minViewMode: "months",
language: 'pt-BR'
})
How to set the current month to be the largest month selectable?
It didn’t work, I still manage to select future months.
– Ricardo Alves
I updated the answer, try again. Try to see the console if you have any js error.
– Allan Kehl
Dude, it didn’t work either, and there are no errors in the console. I’ve tried several tips I found here in the OS and none worked so far.
– Ricardo Alves
Try to set with var then.
– Allan Kehl