InterviewSolution
Saved Bookmarks
| 1. |
Explain Bind() Vs Live() Vs Delegate() Methods? |
Answer»
For example $(document).ready(function(){ $("#myTable").find("TR").live("click",function(){ alert($(this).text()); }); });Above code will not work USING live() method. But using delegate() method we can accomplish this. $(document).ready(function(){ $("#dvContainer")children("table") .delegate("tr","click",function(){ alert($(this).text()); }); });
For example Above code will not work using live() method. But using delegate() method we can accomplish this.
|
|