Filter large list on the client side
<p>I am attempting to Filter a large list of tabular data with text keyup. </p>

<p>In the past I was working with much smaller lists and using solution like the following</p>

<p><a href="http://kilianvalkhof.com/2010/javascript/how-to-build-a-fast-simple-list-filter-with-jquery/" rel="nofollow">http://kilianvalkhof.com/2010/javascript/how-to-build-a-fast-simple-list-filter-with-jquery/</a></p>

<p>and </p>

<p><a href="http://papermashup.com/jquery-list-filtering/" rel="nofollow">http://papermashup.com/jquery-list-filtering/</a></p>

<p>With these you iterate through the list with the contents of your filter, and you toggle the individual displays based on whether it should be shown or not. </p>

<p>I am trying to achieve this filtering without using any additional plugins (except for anything that comes with jquery)</p>

<p>I am also trying to keep all the filtering on the client side. </p>

<p>Here is my markup</p>

<pre><code>&lt;div&gt;
  &lt;table&gt;
     &lt;tbody&gt;
         &lt;tr class="mm-list-control-item" data-code="WHLO-AM"&gt;
           &lt;td&gt; WHLO-AM &lt;/td&gt;
           &lt;td&gt;Rubber City&lt;/td&gt;
           &lt;td&gt;Classic Hits&lt;/td&gt;
         &lt;/tr&gt;           
         &lt;tr class="mm-list-control-item" data-code="WHLO-AM"&gt;
           &lt;td&gt; WHLO-AM &lt;/td&gt;
           &lt;td&gt;Rubber City&lt;/td&gt;
           &lt;td&gt;Classic Hits&lt;/td&gt;
         &lt;/tr&gt;
         &lt;tr class="mm-list-control-item" data-code="WKDD-FM"&gt;
           &lt;td&gt; WKDD-FM &lt;/td&gt;
           &lt;td&gt;Rubber City&lt;/td&gt;
           &lt;td&gt;Classic Hits&lt;/td&gt;
         &lt;/tr&gt;
         &lt;tr class="mm-list-control-item" data-code="WNIR-FM"&gt;
           &lt;td&gt; WNIR-FM &lt;/td&gt;
           &lt;td&gt;Rubber City&lt;/td&gt;
           &lt;td&gt;Classic Hits&lt;/td&gt;
         &lt;/tr&gt;
     &lt;tbody&gt;
  &lt;table&gt;
&lt;/div&gt;
</code></pre>

<p>I am filtering off the data-code contents. Also the size of my list is roughly 2,000 items(tr).</p>

<p>UPDATE: I received a down-vote so let me clarify. I am not looking for large amounts of code. I just need some thoughts if there is a better way to architect this filter other then the way I am doing it. </p>
