I have a custom node, which in the config file has code like this:
<div class="form-row"> <label for="node-input-stuff"><i class="icon-tag"></i> Stuff</label> <select id="node-input-stuff"> <p id="options"></p> </select> </div>
I would like to fill the options of the select tag dynamically with a js get request. I have to retrieve some JSON and then bring only some attributes.
Then I would like with the document.getElementById("options").innerHTML = text; I want fill in the options. Is it possible in some way?