apply plugin to a new element in the DOM (jquery)

后端 未结 4 776
故里飘歌
故里飘歌 2020-12-12 01:23

I am using the jquery tablesorter plugin and applies it to a table with id : #table

my search facility requests for results via ajax and replaces the table with a ne

4条回答
  •  鱼传尺愫
    2020-12-12 01:28

    $.live() will not work in this case. You'll need to manually re-apply it to all new tables following the ajax-success.

提交回复
热议问题