Return to Snippet

Revision: 5841
at April 7, 2008 15:34 by benatkin


Initial Code
$('td').css('border', '2px dotted orange');

function hilite(sel, i, count) {
  if (i < count) {
    if (i > 0) sel.eq(i - 1).css('border', '2px dotted orange');
    sel.eq(i).css('border', '2px solid blue');
    setTimeout(function() { hilite(sel, i + 1, count) }, 50);
  }
}

tds = $('td');
hilite(tds, 0, tds.size());

Initial URL


Initial Description
requires jquery

Initial Title
Highlight table cells

Initial Tags


Initial Language
JavaScript