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

114
Vistas
JQuery selectize.js does not populate with options

I have a Flask application that creates a form which is then manipulated by html and JQuery. For a particular set of multi-select fields in the form, I'm attempting to make the dropdowns searchable using selectize.js. The order of the user's selections are important and the "drag and drop" plug in from selectize.js is exactly what I'm looking for. However, when I try implementing this logic, I'm not able to get the desired behavior in these form fields. The fields are not populating with the options, meaning there is no dropdown. Here is the relevant code snippet -

if (tableMetadata.length > 0) {
     document.getElementById('displayErrorProd').innerHTML = "";
     const options = tableMetadata; //can confirm this produces an array of the desired options
     const items = options.map(x => x[0]);  //can confirm this produces an array of the desired options


     $("#prod_join_key").selectize({
         plugins: ["drag_drop"],
         options: options,
         items: items,
         valueField: options[0],
         labelField: options[0],
         delimiter: ",",
         persist: false,
         sortField: 'text',
         create: function (input) {
            return {
               value: input,
               text: input,
            };
         },
       });

}

Please let me know if any other info is needed in order to debug this. Thanks for our help!

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