jquery optgroup selection according to label
<p>Hello i am getting value dynamically which is my label in optgroup.  now using jquery   i want to show only that optgroup which matches with my dynamic value. </p>

<pre><code>&lt;select class="form-select"  id="test"&gt;
  &lt;option value="_none"&gt;- None -&lt;/option&gt;
     &lt;optgroup label="Personal / Web Conferencing"&gt;
       &lt;option value="257"&gt; 1 &lt;/option&gt;
       &lt;option value="374"&gt; dd &lt;/option&gt;
       &lt;option value="332"&gt;&lt;/option&gt;
     &lt;/optgroup&gt;
     &lt;optgroup label="Personanew"&gt;
       &lt;option value="257"&gt; 1 &lt;/option&gt;
       &lt;option value="374"&gt; dd &lt;/option&gt;
       &lt;option value="332"&gt;&lt;/option&gt;
     &lt;/optgroup&gt;
     &lt;optgroup label="Personalsss"&gt;
       &lt;option value="257"&gt; 1 &lt;/option&gt;
       &lt;option value="374"&gt; dd &lt;/option&gt;
       &lt;option value="332"&gt;&lt;/option&gt;
     &lt;/optgroup&gt;
     &lt;optgroup label="Personalsss"&gt;
       &lt;option value="257"&gt; 1 &lt;/option&gt;
       &lt;option value="374"&gt; dd &lt;/option&gt;
       &lt;option value="332"&gt;&lt;/option&gt;
    &lt;/optgroup&gt;
 &lt;/select&gt;
</code></pre>

<p>How to do this using jquery. i dnt have any idea about this . how to play with optgroup 
Thanks a lot</p>
