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

136
Visualizações
Transferring a Jquery object to a different input

I am working on modifying a WordPress template for a client, one of the inputs I'm working with has a class that shows a calendar. Whenever I call the the input on the console like so jQuery("#booking_from_date") it shows a jQuery object underneath it that says:

jQuery360045212629567534381: {events: {…}, hasDataAttrs: true, focus: false, handle: ƒ}
jQuery360045212629567534382: {singleDatePicker: false, autoApply: true, alwaysShowCalendars: true, autoUpdateInput: false, minDate: '05/22/2022', …}

the html of the input looks like this

<input type="text" id="booking_from_date" size="40" name="booking_from_date" class="form-control" placeholder="Check-In" value="" readonly="readonly">

it seems like these jQuery classes were added to the input via the id of the input is there a way I can transfer those objects to a input with a different id? my goal is to be able to view the calendar when someone clicks on a different input with a different ID. I already tried using another input with the same id but the calendar will not show up. It seems like the calendar will only render the first input rendered on the page with ID of "booking_from_date"

about 4 years ago · Juan Pablo Isaza
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