title: Filtering a combo box with jquery
body: <p>My php script uses mysql results to create a dynamic combo box which then submits back to the script to process the selections. Basically the combo box options are created with this loop:</p>
  
  <pre><code>foreach ($attachments as $value) {echo '&lt;option value="' . $value . '" selected&gt;' . $value . '&lt;/option&gt;';}
  </code></pre>
  
  <p>I'd like to filter that combo box using jquery so I tried messing around with the plugin <code>jquery.livefilter</code>. It works great if the data is encased in <code>&lt;li&gt;</code> tags like this:</p>
  
  <pre><code>&lt;ul id="livefilter-list"&gt;
    &lt;li&gt;&lt;a href="#"&gt;cool&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;nice&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;interesting&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;javascript&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;css&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;html&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;script&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;international&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>But can I somehow use my combo box's option tag instead of the list tag? Is there another way to filter option tags with jquery?</p>