I have the following Ajax excerpt to feed input of type text or select with values already defined:
ids.forEach(function (id) {
document.getElementById(id).value = dados[id];
});
I would like to know if you have a new option for a select field that I set, using the Ajax result. For example: In HTML I have declared the select with no option, it would only be created from the result of that Ajax. Is it possible?