I have this piece of JS:
for(var index in response.rates) {
select.options[select.options.length] = new Option([index], index);
}
It generates the and tags populated with an array.
How can I give attributes to from there? Like onselect and and other things.
[index]to justindex