Using delegates to listen to events from a particular context


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $("table").delegate("td", "hover", function(){
  2. $(this).toggleClass("active");
  3. });
  4.  

Report this snippet


Comments


You need to login to view comments.