title: jquery excel like filter plugin
body: <p>I am trying to make excel like filtering for my dynamic table. I am using this <code>jquery plugin</code> <a href="https://github.com/chestercharles/excel-bootstrap-table-filter" rel="nofollow noreferrer">https://github.com/chestercharles/excel-bootstrap-table-filter</a>. I'm using it because it resembles excel filters.</p>
  
  <p>I tried it on non dynamic table coded in html everything worked good. But when I tried to implement the loading from database <code>(php, MSSQL)</code> it gives me this.</p>
  
  <p><code>tds[selectedLists[j].column] is undefined</code></p>
  
  <p>Error is in this particular  function:</p>
  
  <pre><code>FilterCollection.prototype.updateRowVisibility = function (filterMenus, rows, ths) {
      var showRows = rows;
      var hideRows = [];
      var selectedLists = filterMenus.map(function (filterMenu) {
          return {
              column: filterMenu.column,
              selected: filterMenu.inputs.filter(function (input) {
                  return input.checked;
              }).map(function (input) {
                  return input.value.trim().replace(/ +(?= )/g, '');
              })
          };
      });
      for (var i = 0; i &lt; rows.length; i++) {
          var tds = rows[i].children;
          for (var j = 0; j &lt; selectedLists.length; j++) {
              var content = tds[selectedLists[j].column].innerText.trim().replace(/ +(?= )/g, '');
              if (selectedLists[j].selected.indexOf(content) === -1) {
                  $(rows[i]).hide();
                  break;
              }
              $(rows[i]).show();
          }
      }
  };
  </code></pre>
  
  <p>Does anyone have an idea why is this happening and how to correct it.</p>