SCRIVI_TBL+='<select size="1" name="adt" id="adt'+k+'" onchange="crea_option('+id+','+max+',''+this.optio ns[this.selectedIndex].text+'')">'
devo inserire questo codice, il problema sta nel
''+this.options[this.selectedIndex].text+''
infatti mi da errore nei seguenti modi:
Se: onchange="crea_option('+id+','+max+',''+this.optio ns[this.selectedIndex].text+'')"
Errore: missing ; before statement
Codice sorgente:
SCRIVI_TBL+='<select size="1" name="adt" id="adt'+k+'" onchange="crea_option('+id+','+max+',''+this.optio ns[this.selectedIndex].text+'')">'
OPPURE se: onchange="crea_option('+id+','+max+',"+this.option s[this.selectedIndex].text+")"
Errore: syntax error
Codice sorgente:
crea_option(1,4,
OPPURE SEnchange="crea_option('+id+','+max+','"+this.option s[this.selectedIndex].text+"');"
Errore: missing ; before statement
Codice sorgente:
SCRIVI_TBL+='<select size="1" name="adt" id="adt'+k+'" onchange="crea_option('+id+','+max+','"+this.optio ns[this.selectedIndex].text+"');">'
:maLOL: