Posted By

diogoweb on 05/03/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

maltem


Add “hover” class to table data (and change the background color of the class via CSS)


 / Published in: jQuery
 

URL: http://eisabainyo.net/weblog/2010/09/01/10-useful-jquery-snippets/

  1. $('table').delegate('td', 'hover', function(){
  2. $(this).toggleClass('hover');
  3. });

Report this snippet  

You need to login to post a comment.