jquery delegate

jquery delegate

Simple jquery delegate example
<table border="1"><tbody>
<tr>         <td>jquery delegate</td>         <td>delegate with jquery</td>     </tr>
</tbody></table>
$("table").delegate("td", "hover", function(){     $(this).toggleClass("hover"); });
.hover {
color: white;
background: green;    
}
td { padding: 5px; }
Demo / Download
jquery delegate jquery delegate Reviewed by Bhaumik Patel on 7:38 AM Rating: 5