Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

106
Visualizações
I have problem with datepicker dateDisnable

I hava a problem with use datepicker bootstrap v1.5.0

    var nowTemp = new Date();
 var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
 var checkin = $('.checkin').datepicker({
        todayHighlight:'TRUE',
        autoclose: true,
        beforeShowDay: function(date) {
            return date.valueOf() >= now.valueOf();
        },
        datesDisabled :test,
    }).on('changeDate', function(ev) {
        $(this).datepicker('hide');
        if (ev.date.valueOf() > checkout.datepicker("getDate").valueOf()
            || !checkout.datepicker("getDate").valueOf()) {
            var newDate = new Date(ev.date);
            newDate.setDate(newDate.getDate() + 1);
            checkout.datepicker("update", newDate);
        }

    });
var checkout = $('.checkout').datepicker({
        beforeShowDay: function(date) {
            if (!checkin.datepicker("getDate").valueOf()) {
                return date.valueOf() >= new Date().valueOf();
            } else {
                return date.valueOf() > checkin.datepicker("getDate").valueOf();
            }
        },
        autoclose: true,
        datesDisabled :daylist,
    }).on('changeDate', function(ev) {});

when I choose date of my checkin input, my checkout input not display, but when i press tab and click again, it display and with error enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It appears you may have syntax errors:

remove comma ","

datesDisabled :test,

datesDisabled :test

and also here:

datesDisabled :daylist,

datesDisabled :daylist

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda