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
How to re update select box in java script

I am working on a project. So when ever i edit the names stored in an array, the select box value wont update o the new name.

The select box names where all appended with a java script loop and its in same array witht the names.

Can any one solve this problems.

Here is my code for generating and filling the select box.

function displaycurrentName() {
  for (let g = 0; g < arrMain.length; g++) {
    const selectBx = document.createElement("option");
    selectBx.text = arrMain[g][1];
    selBox.options.add(selectBx)
    // renameMe.value = selBox.value;
    matchMe();
  }
}

It works only once and wont work again when I make edits...

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