title: JQuery Tablesorter ajax update
body: <p>I have problem with updating table. I use plugin of JQuery Tablesorter. Sorting works, but pagination not working.</p>
  
  <pre><code>$(function () {
      $("#myTable").tablesorter();
      $('#topicT').on('click', 'a', function () {
          var href = $(this).attr('href');
          var id = href.replace('#', '');
          $.ajax({
              url: 'faqs',
              type: 'POST',
              data: {topicId: id},
              success: function (response) {
                  var html = '';
                  $.each(response, function (key, val) {
                      html += '&lt;tr&gt;&lt;td&gt;' + val.question + '&lt;/td&gt;&lt;/tr&gt;'
                  });
                  $('#myTable tbody').empty().append(html);
                  $('#myTable').trigger('update');
                  var sorting = [
                      [0, 0]
                  ];
                  $('#myTable').trigger('sorton', [sorting]);
              }
          });
      });
  
  });
  </code></pre>
  
  <p>When I change </p>
  
  <p><code>$("#myTable").tablesorter();</code> </p>
  
  <p>to </p>
  
  <p><code>$("#myTable").tablesorter({widthFixed: true, widgets: ['zebra']}).tablesorterPager({container: $("#pager")});</code> </p>
  
  <p>table not working. </p>
  
  <p>Error: Cannot read property 'length' of undefined. And data don't load to the table. Can somebody help my to solve this problem?</p>