se riclicco una cella selezionata, mi toglie il colore da essa ma non il numero dalla casella di testo.
Basta chiedere...
codice:
<script>
function colora(v) {
  obj = document.getElementById("td"+v)
  dst = document.getElementById("ids")
  if (obj.style.backgroundColor!="red") {
    dst.value += (dst.value=="")?v:","+v;
    obj.style.backgroundColor="red";
  } else {
    oldv = dst.value.split(",");
    newv = "";
    for (var i=0; i[list=1]
ciao