Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

135
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda