Enable button if at least one select option
<p>I have a form with 3 select elements. Each one, by default, has option "na" and submit button is disabled. I need to enable the button when at least one of these three selectors has any other option but "na" </p>

<p>I am trying to write a function so that I can check for options on page load as well:</p>

<p><strong>JS</strong></p>

<pre><code>function myFunction() {
    bt   = $(".b");
    bt.attr("disabled", false).removeClass("disabledB");

    if ($(".mySelect").val(":not(na)").length &gt; 0) {
        bt.attr("disabled", true).addClass("disabledB");
        return false;
    }
}
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;table&gt;
&lt;tr&gt;
  &lt;td&gt;
    &lt;select class="mySelect"&gt;
      &lt;option value="na"&gt;&lt;/option&gt;
      &lt;option value="1"&gt;value 1&lt;/option&gt;
      &lt;option value="2"&gt;value 2&lt;/option&gt;
    &lt;/select&gt; 

    &lt;select class="mySelect"&gt;
      &lt;option value="na"&gt;&lt;/option&gt;
      &lt;option value="3"&gt;value 3&lt;/option&gt;
      &lt;option value="4"&gt;value 4&lt;/option&gt;
    &lt;/select&gt; 
  &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;
    &lt;input type="button" class="b" value="click me"&gt;
  &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>Not sure what I am doing wrong.</p>
