使用livequery将jquery事件绑定到ajax&ŧ039;d内容

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用livequery将jquery事件绑定到ajax&ŧ039;d内容相关的知识,希望对你有一定的参考价值。

#modal would be the bodyID of your modal window. I use jqmodal so it strips out all the header tags, and takes your body ID and turns it into a div.
  1. $().ready(function() {
  2.  
  3. /* use livequery to bind events to stuff that wont see the dom */
  4.  
  5. $("#modal").livequery(function() {
  6.  
  7. /* do your business here */
  8.  
  9. });
  10.  
  11. });

以上是关于使用livequery将jquery事件绑定到ajax&ŧ039;d内容的主要内容,如果未能解决你的问题,请参考以下文章