Well, since you are not responding, I will put in a little script that I often use and get a neat effect.
He needs jQuery to be present on your website
$('select').change(function(){ var region = $(this).val(); $("tr").each(function () { if ($(this).text().search(new RegExp(region, "i")) < 0) { $(this).hide(); } else { $(this).show(); } }); });
You can see how this works here http://jsfiddle.net/6psNF/1/
You must adapt your table code so, for example, a table can have an identifier, and a line with a code can have a class. A little code with a tiny example:
<table id="trader"> <tbody> <tr> <td>Random</td> <td class="region">E. Midlands</td> <td>Member</td> <td>Size</td> <td>Price</td> <td>Date</td> <td>Posted</td> </tr> </tbody>
So, the code I wrote may end up like
$('select').change(function(){ var region = $(this).val(); $("#trader tr").each(function () { if ($(this).text().find(".region").search(new RegExp(region, "i")) < 0) { $(this).hide(); } else { $(this).show(); } }); });
Increase productivity on pages with a lot of content or super large tables!
source share