Hello everyone,
I have a problem i have to change the option values in the code given below and newOptions, newValues are also array's
how could i assign different values in this
function changeSelect(fieldID, newOptions, newValues) {
selectField = document.getElementById(fieldID);
selectField.options.length = 0;
for (i=0; i<newOptions.length; i++) {
selectField.options[selectField.length] = new Option(newOptions, newValues);
}
}