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...