How do I validate my drop down list with javascript
<p>I want to validate my drop down list to current javascript function.</p>

<p>Javascript </p>

<pre><code>function theteam() {
    document.add_team_frm.action = "team.php";
    document.add_team_frm.submit();
}
</code></pre>

<p>HTML</p>

<pre><code>&lt;form name="add_team_frm" action="team.php" method="post"&gt;
&lt;select name="team_name[]"&gt;
&lt;option value="0"&gt;Select Team&lt;/option&gt;
&lt;option value="1"&gt;Team A&lt;/option&gt;
&lt;option value="2"&gt;Team B&lt;/option&gt;
&lt;option value="3"&gt;Team C&lt;/option&gt;
&lt;/select&gt;
&lt;a href="javascript:theteam()"&gt;Submit Team&lt;/a&gt;
&lt;/form&gt;
</code></pre>

<p>I use link as submit button. How do I add a a validation on <code>name="team_name[]"</code> to the <code>theteam()</code> if <code>value = 0</code></p>

<p>Let me know.</p>
