Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3623690
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:24:53+00:00 2026-05-18T23:24:53+00:00

I have a really large table (around 32 columns and 1000+ rows) which I’m

  • 0

I have a really large table (around 32 columns and 1000+ rows) which I’m trying to filter using a drop down box.

The table takes a relatively standard format (this one has been redacted for simplicity):

<div id="SearchResults">
<table>
<thead>
<tr>
<th>Report Name</th>
<th>xxxxx Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sales_Report_Week_#</td>
<td>Sales Volume</td>
</tr>
</tbody>
</table>

The drop down box has already been assembled like so:

<select name="Report_Name_Drop" id="id_dropdown"> 
<option>xxxxx1</option>
<option>xxxxx2</option> 
<option>xxxxx3</option>
<option>xxxxx4</option> 
<option>xxxxx5</option> </select>

Unfortunately I’m working within a severely locked down sharepoint environement meaning I am unable to use any plug ins. I simply need to hide all rows which do not match the value in the drop down box but I can’t for love nor money figure out how!

Any help would be greatly appreciated!

Thanks,

James

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:24:54+00:00Added an answer on May 18, 2026 at 11:24 pm

    Try something like this. Basically I create a set of the values in the filter column, and add those values to the <select> dropdown. Then when that dropdown changes I hide/show the relevant rows in the table. This pattern can be extended to include multiple filters as needed, just test all the relevant columns against all the relevent <select> elements.

    <!DOCTYPE HTML>
    <html>
      <head>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        <script type="text/javascript">
        $(function() {
            var vals = {};
            $('tbody tr').each(function(i){
                var t = $(this).find('td:first-child').text();
                vals[t] = t;
            });
            $.each(vals, function() {
                $('select').append($('<option value="' + this +'">' + this +'</option>'));
            });
            $('select').change(function() {
                var val= $(this).val();
                if (val != '-') {
                  $('tbody tr').each(function(i){
                      if ($(this).find('td:first-child').text() != val) {
                        $(this).hide();
                      } else {
                        $(this).show();
                      }
                  });
                } else {
                  $('tbody tr').each(function(i){
                      $(this).show();
                  });
                }
            });
        });
        </script>
      </head>
      <body>
        <select><option value="-"> === Filter === </option></select>
        <table>
          <thead>
            <tr>
              <th>Name</th>
              <th>Value</th>
            </tr>
          </thead>
          <tbody>
            <tr><td>Mark</td><td>12</td></tr>
            <tr><td>Mark</td><td>1</td></tr>
            <tr><td>Daryl</td><td>2</td></tr>
            <tr><td>Larry</td><td>122</td></tr>
            <tr><td>Kevin</td><td>132</td></tr>
            <tr><td>Larry</td><td>1232</td></tr>
            <tr><td>Kevin</td><td>1432</td></tr>
          </tbody>
        </table>
    
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a really large SQL dump around 400MB. It's in the following format,
I have a table containing a large number of rows. Each row has 2
I have a table containing a large number of rows. Each row has 2
I have a really large VB6 code base with a ton of 3rd party
I have a really long 3 column table. I would like to <table> <tr><td>Column1</td><td>Column2</td></tr>
We have some really old code that calls WebServices using behaviours (webservice.htc), and we
I have a script that appends some rows to a table. One of the
We’ve found that the unit tests we’ve written for our C#/C++ code have really
What should i use to code Classic ASP under Linux. I have really tried
I have some really complicated legacy code I've been working on that crashes when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.