In mid-2009 I did a screencast about tables which featured how to do row and column highlighting with jQuery. The method in the video isn’t nearly as efficient as it could be, so this is an update to that. Shout out to Bronislav Klucka who contacted me about the idea.
Attaching events to table cells is the quintessential example, and also read like a history for event handling in jQuery.
- Original demo (version < jQuery 1.3 ) - Using .hover() on every single <td>
- Live demo ( jQuery 1.3 ‘s