how to implement a jQuery live bind event on mootools?

后端 未结 4 1221
别那么骄傲
别那么骄傲 2020-12-10 00:06

How do I make elements that are loaded via ajax, adopt the events associated with the same class on mootools 1.11?

As far as I know, in jQquery, if your ajax respons

4条回答
  •  余生分开走
    2020-12-10 00:28

    You can use this way:

    $(document.body).addEvent('click:relay(.filterButton)', function(){
    // do something
    });
    

提交回复
热议问题