jQuery AJAX tableSorter

I have table a select box and change event for my AJAX call with tablesorter plugin. It does not seem to apply tablesorter more than once. After AJAX success, the sorter functionalities do not get applied to the newly loaded html elements. Below is an example: $(document).ready(function() { $('#policies').dataTable(); $('#PolicyCategory').live('change',function(){ var policy = $('#PolicyCategory').val(); var form_data = { category_id: policy, ajax: '1' }; $.ajax({ url: "http://coverbuddy.favstay.com/users/category_ajax", type: "POST", dataType: "html", cache: false, data : form_data, success: function(data){ //console.log(); //alert(data); $('#policies').html(data); $("#policies").trigger("update"); } }); }); }); Is there something that I'm missing?

以上就是jQuery AJAX tableSorter的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准