Mega Code Archive

 
Categories / JavaScript Tutorial / JQuery
 

To toggle a style on table cells

jQuery Code $("td").toggle(   function () {     $(this).addClass("selected");   },   function () {     $(this).removeClass("selected");   } );