salve a tutti gente vorrei sapere come faccio a colorare una cella al click del mouse, una cella per volta.....
thk a tutti
salve a tutti gente vorrei sapere come faccio a colorare una cella al click del mouse, una cella per volta.....
thk a tutti
devi usare il javascript io faccio così:
<script>
function check(it) {
tr = it.parentNode.parentNode;
tr.style.backgroundColor = (it.checked) ? "#e6f0ff": "";
}
</script>
^^tra i tag head^^
<input type=checkbox onclick="check(this)">
uso i checkbox
Comunque non è questa la sezione adatta