Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!