title: add drop down filter to table jQuery
body: <p>I'd just like to add a filter to my table to filter the deals by free gift... Not sure how to do it.</p>
  
  <p>I have made the drop down box for the filter but how do i populate it with the data it needs to be filtered by without cheating - I need it to actually check the table for the filterable data as the tables are created in php and I cant manually make the filter preset with filterable options as I have many many tables on my site.</p>
  
  <p>As you can see here <a href="https://jsfiddle.net/51Le6o06/26/" rel="nofollow">https://jsfiddle.net/51Le6o06/26/</a> as an example this is what is currently happening - each row contains a child row and there is also paging and there are two tables as it must work with multiple tables on the same page.</p>
  
  <p>So how do I create this filter?</p>
  
  <p>jQuery</p>
  
  <pre><code>jQuery.fn.sortPaging = function(options) {
      var defaults = {
          pageRows: 4
      };
      var settings = $.extend(true, defaults, options);
      return this.each(function() {
  
          var container = $(this);
          var tableBody = container.find('.internalActivities &gt; tbody');
          var dataRows = [];
          var currentPage = 1;
          var maxPages = 1;
          var buttonMore = container.find('.seeMoreRecords');
          var buttonLess = container.find('.seeLessRecords');
          var buttonFree = container.find('.filter-free');
          var tableRows = [];
          var maxFree = 0;
          var filterFree = buttonFree.is(':checked');
          function displayRows() {
              tableBody.empty();
              var displayed = 0;
              $.each(dataRows, function(i, ele) {
                  if( !filterFree || (filterFree &amp;&amp; ele.isFree) ) {
                      tableBody.append(ele.thisRow).append(ele.nextRow);
                      displayed++;
                      if( displayed &gt;= currentPage*settings.pageRows ) {
                          return false;
                      };
                  };
              });
          };
          function checkButtons() {
              buttonLess.toggleClass('element_invisible', currentPage&lt;=1);
              buttonMore.toggleClass('element_invisible', filterFree ? currentPage&gt;=maxFreePages : currentPage&gt;=maxPages);
          };
          function showMore() {
              currentPage++;
              displayRows();
              checkButtons();
          };
          function showLess() {
              currentPage--;
              displayRows();
              checkButtons();
          };
          function changedFree() {
              filterFree = buttonFree.is(':checked');
              if( filterFree &amp;&amp; currentPage&gt;maxFreePages ) {
                  currentPage=maxFreePages;
              };
              displayRows();
              checkButtons();
          };
  
          tableBody.find('.product-data-row').each(function(i, j) {
              var thisRow = $(this);
              var nextRow = thisRow.next();
              var amount = parseFloat(thisRow.find('.amount').text().replace(/£/, ''));
              var isFree = thisRow.find('.free').length;
              maxFree += isFree;
              dataRows.push({
                  amount: amount,
                  thisRow: thisRow,
                  nextRow: nextRow,
                  isFree: isFree
              });
          })
  
          dataRows.sort(function(a, b) {
              return a.amount - b.amount;
          });
          maxPages = Math.ceil(dataRows.length/settings.pageRows);
          maxFreePages = Math.ceil(maxFree/settings.pageRows);
  
          tableRows = tableBody.find("tr");
  
          buttonMore.on('click', showMore);
          buttonLess.on('click', showLess);
          buttonFree.on('change', changedFree);
  
          displayRows();
          checkButtons();
  
      })
  
  };
  
  $('.sort_paging').sortPaging();
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;h1&gt;Table sorting on page load with paging&lt;/h1&gt;
  
  &lt;div class="sort_paging"&gt;
  
      &lt;p&gt;
          &lt;input type="checkbox" class="filter-free" /&gt; Free Handset
          &lt;select class="filter-gift"&gt;
            &lt;!-- Options must be filled by jQuery from HTML $(.information)--&gt;
          &lt;/select&gt;
      &lt;/p&gt;
  
      &lt;table class="internalActivities"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;head1&lt;/th&gt;
                  &lt;th&gt;head2&lt;/th&gt;
                  &lt;th&gt;head3&lt;/th&gt;
                  &lt;th&gt;head4&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£364.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£10.10 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free TV
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£40.40 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free TV
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£30.30 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free TV
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£16.04 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£134.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£12.19 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£120.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£14.22 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£50.22 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£10.33 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£40.45 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£200.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£30.84 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£16.14 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£12.10 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free Biscuits
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£14.02 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free Biscuits
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£50.88 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free Biscuits
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  
      &lt;input type="button" class="seeMoreRecords" value="More"&gt;
      &lt;input type="button" class="seeLessRecords" value="Less"&gt;
  
  &lt;/div&gt;
  
  &lt;h2&gt;Second table below&lt;/h2&gt;
  
  &lt;div class="sort_paging"&gt;
  
      &lt;p&gt;
          &lt;input type="checkbox" class="filter-free" /&gt; Free Handset
          &lt;select class="filter-gift"&gt;
            &lt;!-- Options must be filled by jQuery from HTML $(.information)--&gt;
          &lt;/select&gt;
      &lt;/p&gt;
  
      &lt;table class="internalActivities"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;head1&lt;/th&gt;
                  &lt;th&gt;head2&lt;/th&gt;
                  &lt;th&gt;head3&lt;/th&gt;
                  &lt;th&gt;head4&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£364.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£10.10 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free TV
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£40.40 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free TV
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£30.30 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free TV
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£16.04 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£134.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£12.19 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£120.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£14.22 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£50.22 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free XBOX
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£10.33 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£40.45 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="handsetcost"&gt;£200.00 upfront&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£30.84 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£16.14 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free PS4
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£12.10 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free Biscuits
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£14.02 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free Biscuits
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr class="product-data-row"&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;data&lt;/td&gt;
                  &lt;td&gt;&lt;span class="free"&gt;No upfront cost&lt;/span&gt;
                      &lt;br&gt;&lt;span class="amount"&gt;£50.88 per month&lt;/span&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr class="product-information-row"&gt;
                  &lt;td colspan="100%"&gt;&lt;p class="information"&gt;Free Biscuits
                  &lt;/p&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  
      &lt;input type="button" class="seeMoreRecords" value="More"&gt;
      &lt;input type="button" class="seeLessRecords" value="Less"&gt;
  
  &lt;/div&gt;
  </code></pre>