jquery get indexes of all items in a list from a select box
<p>I have a select box like:</p>

<pre><code>&lt;select name="blah" id="meh"&gt;
&lt;option value="1"&gt;Car&lt;/option&gt;
&lt;option value="2"&gt;Horse&lt;/option&gt;
&lt;option value="3"&gt;Van&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I then have some Json like:</p>

<pre><code>[Object { id="1",  label="Car",  value="1"}, Object { id="3",  label="Van",  value="3"}]
</code></pre>

<p>What I want to do is get the indexes from the select that match the values in my json and also i want to get the indexes from my select that are not in my json.  So i've written this bit of code:</p>

<pre><code>$.map( data, function( item ) {
        $('#meh option').filter(function() {
            if($(this).text() == item.label){
                $('ul.chzn-results').append('&lt;li id="meh_chzn_o_'+$(this).index()+'" class="active-result"&gt;' + item.label + '&lt;/li&gt;');
                }
        });
});
</code></pre>

<p>Now this get's me the indexes that are in my json; however, i'm struggling with getting those that are not in the json and then doing a <code>$('#meh_chzn_c_'+$(this).index()+').remove();</code> on those that are not part of the json.</p>
