0
Watch the image;
This is my HTML;
<input class="form-control date-picker" placeholder="Data Início">
And this is my Javascript code;
$(function() {
$('.date-picker').datepicker( {
changeMonth: true,
changeYear: true,
dateFormat: 'MM/yy',
// dateFormat: 'dd/mm/yy',
dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],
dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S', 'D'],
dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'],
monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
nextText: 'Proximo',
prevText: 'Anterior'
});
});
- Please, how do I change the color of the calendar to Blue?
- And how do I get the names of the months, because it’s blank?
Hi, you can create a complementary stylesheet and make use of the browser element inspector to view the style tree and modify them or risk changing the original file, which is not advisable, create a new sheet and calla after the plugin and make your modifications.
– ElvisP
Guy puts the plugin you are using there. only with these hints can not answer you... Here for example is getting like this http://prntscr.com/ndb82y and vc uses Bootstrap 3 or 4?
– hugocsl