title: getting perticular listbox selected value using javascript
body: <p>I have html listbox as, which has same name but different id</p>
  
  <pre><code>&lt;select name="dept"  id="vrow" &gt;
                          &lt;option selected="selected" &gt; - Select Department- &lt;/option&gt;
                          &lt;option value="GEN"&gt;computer &lt;/option&gt;
                          &lt;option value="SC"&gt;mac &lt;/option&gt;
                          &lt;option value="ST"&gt;civ &lt;/option&gt;
                          &lt;option value="OBC"&gt;ele &lt;/option&gt;
                        &lt;/select&gt;
  </code></pre>
  
  <p>i had atteched it to each row fetched from database,
  how can i get ID if i change perticular listbox value.</p>