Any way that I can hide a value from the list from select dropdown based on the value in jquery?
<p>Does anyone know how can I hide the value from the dropdown list with jquery?</p>

<p>Exmaple:</p>

<p>If I have a dropdown as following:</p>

<pre><code>&lt;select name="Test" id="Test"&gt;
    &lt;option value=""&gt;&lt;/option&gt;
    &lt;option value="1"&gt;Test1&lt;/option&gt;
    &lt;option value="2"&gt;Test2&lt;/option&gt;
    &lt;option value="3"&gt;Test3&lt;/option&gt;
    &lt;option value="4"&gt;Test4&lt;/option&gt;
    &lt;option value="5"&gt;Test5&lt;/option&gt;
    &lt;option value="6"&gt;Test6&lt;/option&gt;
&lt;/select&gt;  
</code></pre>

<p>How can I hide the list value if the value is 2, 3, 4 in jqury? So the output will be as below</p>

<pre><code>&lt;select name="Test" id="Test"&gt;
    &lt;option value=""&gt;&lt;/option&gt;
    &lt;option value="1"&gt;Test1&lt;/option&gt;
    &lt;option value="5"&gt;Test5&lt;/option&gt;
    &lt;option value="6"&gt;Test6&lt;/option&gt;
&lt;/select&gt;  
</code></pre>
