Diff for /books/www/chapters/ch05.html between versions 1.20 and 1.21

version 1.20, 2002/12/24 16:23:38 version 1.21, 2003/03/19 15:10:11
Line 562  dump(count + " items checked \n"); Line 562  dump(count + " items checked \n");
    var chex   = document.getElementsByAttribute("disabled", "true");     var chex   = document.getElementsByAttribute("disabled", "true");
    var unchex = document.getElementsByAttribute("disabled", "false");     var unchex = document.getElementsByAttribute("disabled", "false");
    for (var i=0; i<chex.length; i++)     for (var i=0; i<chex.length; i++)
       chex</td>[i].setAttributte("checked", "false");       chex[i].setAttributte("disabled", "false");
    for (var i=0; i<unchex.length; i++)     for (var i=0; i<unchex.length; i++)
       unchex</td>[i].setAttributte("checked", "true");       unchex[i].setAttributte("disabled", "true");
  }   }
 </pre>  </pre>
     <p>Although this example doesn't update elements whose      <p>Although this example doesn't update elements whose

Removed from v.1.20  
changed lines
  Added in v.1.21


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>