Ciao a tutti
creo diversi select dinamicamente in javascript :
//select commitente
var select = document.createElement("select");
var opti = document.createElement("option");
the_text = document.createTextNode("tecnopolo");
opti.appendChild(the_text);
select.setAttribute("name","commitente"+num);
select.setAttribute("","commitente"+num);
select.appendChild(opti);
fino a li tutto ok pero avrei bisogno di includere un elemente "onchange" nel mio select per chiamare una funzione tipo:
<select name="commitente1" size="1" onchange="updateForm(numSource,flag=0)">
si pùo fare?
Grazie