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

161
Vistas
jquery ui datepicker not appearing on click with marionette/backbone

Using marionette and trying to display a jquery date picker. However, when I click on the input, the calendar does not appear.

This is my view:

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

},

onShow() {
    this.ui.dateInput.datepicker();
},

My template with the datepicker 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>

I would assume this would be enough for the calendar to render properly however it doesnt happen. Am I missing something in my view or my template?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

this.ui.dateInput

is a selector. You need to create a jQuery object by passing this selector to it and then call .datepicker() on the result:

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