how to validate select through javascript
<p>I want to validate select option with javascript like if user select Admin then this page work for admin Login,
Now if user select vendor then for vendor while user for userlogin</p>

<pre><code> &lt;table class="login_table" width="100%" border="0" cellspacing="0" cellpadding="0"&gt;
      &lt;tr&gt;
        &lt;td style="width:30%;"&gt;Username&lt;/td&gt;
        &lt;td style="width:70%;"&gt;&lt;input name="uname" id="uname" type="text" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td style="width:30%;"&gt;Password&lt;/td&gt;
        &lt;td style="width:70%;"&gt;&lt;input name="upass" id="upass" type="password" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
       &lt;tr&gt;
        &lt;td style="width:30%;"&gt;Login Type&lt;/td&gt;
        &lt;td style="width:70%;"&gt;
        &lt;select&gt;
        &lt;option&gt;Admin&lt;/option&gt;
        &lt;option&gt;Vendor&lt;/option&gt;
        &lt;option&gt;User&lt;/option&gt;
        &lt;/select&gt;

        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td colspan="2" style="text-align:right; padding-right:5px;"&gt;&lt;input type="submit"  class="login_button" name="login" value="Login" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
</code></pre>

<p>HOw it is Possible </p>
