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

160
Views
jquery ui datepicker no aparece al hacer clic con marionette/backbone

Usando marionetas e intentando mostrar un selector de fecha jquery. Sin embargo, cuando hago clic en la entrada, el calendario no aparece.

Esta es mi vista:

 const view = app.Views.Layout.extend({ template: require('./templates/template'), ui: { dateInput: '#date_input', }, onShow() { this.ui.dateInput.datepicker(); },

Mi plantilla con el selector de fecha div:

 <div id="date_container" class="input_holder"> <input type="text" id="date_input" placeholder="mm/dd/year"></input> <div id="date_picker_holder"></div> </div>

Supongo que esto sería suficiente para que el calendario se reproduzca correctamente, sin embargo, no sucede. ¿Me estoy perdiendo algo en mi vista o en mi plantilla?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

this.ui.dateInput

es un selector. Debe crear un objeto jQuery pasándole este selector y luego llamar a .datepicker() en el resultado:

 $(this.ui.dateInput).datepicker();
about 4 years ago · Juan Pablo Isaza Report
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!