Originariamente inviato da var
che richiami così:codice:function funzione(stato, originid) { var idriga; idriga="myrow"+originid.substr(7,2); if (stato) document.getElementById(idriga).style.backgroundColor='#CCCCCC'; else document.getElementById(idriga).style.backgroundColor='#FFFFFF'; }
Stavo per scriverlo io mi hai anticipato di un soffiocodice:<input type="checkbox" id="mycheck01" onClick="funzione(this.checked, this.id);">
ciao![]()