The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other (Better/Different) Column Highlighting

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #25476

    Just finished the Table 2 video, and the way Chris did column highlighting seemed a bit complex. It might be becaus he wanted to show off the colgroup element, though.

    But if you’re just after column highlighting, quick and easy, you could do this:

    var colNo = $(this).prevAll(“td”).size();
    $(“tr td:nth-child(“+ (colNo+1) +”)”).addClass(“hover”);

    Put that inside the hover function, and you should get the same effect, without need for colgroups or class names for each cell. (:

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.