title: Real Time Search in HTML Table Which has Pagination?
body: <p>I have a HTML table in my ASP.NET MVC application which is having 10 Rows for one Page with 50 pages with Pagination and sort enabled, for searching  I have added a piece of jquery code which I found out </p>
  
  <pre><code>var $rows = $('#table tr');
  $('#search').keyup(function() {
      var val = $.trim($(this).val()).replace(/ +/g, ' ').toLowerCase();
  
      $rows.show().filter(function() {
          var text = $(this).text().replace(/\s+/g, ' ').toLowerCase();
          return !~text.indexOf(val);
      }).hide();
  });
  </code></pre>
  
  <p>It works fine for the current page, but it doesn't search the whole table ? Could you please help me out for the same ?</p>
  
  <p>Help appreciated , Thanks in advance.</p>