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

162
Views
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
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!