ora mi da questo errore...
questo il codice della funzione:codice:Errore: uncaught exception: [Exception... "Not enough arguments [nsIDOMHTMLSelectElement.add]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://www.giacomol... :: NuovoElemento :: line 135" data: no]
e questa la riga che da l'errorecodice:function NuovoElemento(In, valore, testo) { var aSelect = document.volume[In]; var newOption = document.createElement("option"); aSelect.add(newOption); newOption.value = valore; newOption.text = testo; newOption.selected = true; }
codice:newOption.value = valore;
qualche suggerimento?


Rispondi quotando