title: Stop form from submitting if select option is disabled
body: <p>I'm not very good with forms and am having a great deal of difficulty with what should be a simple problem.</p>
  
  <p>I have a form which contains the following:</p>
  
  <pre><code>        &lt;select id="values" name="Choice"&gt;
              &lt;option value="choose"&gt;Please Choose...&lt;/option&gt;
              &lt;option value="01"&gt;Value 1&lt;/option&gt;
              &lt;option value="02"&gt;Value 2&lt;/option&gt;
          &lt;/select&gt;
  </code></pre>
  
  <p>All I want to do is stop the form from submitting if neither value-01 or value-02 are selected but the disabled option doesn't work. </p>
  
  <p>How can I achieve this?</p>
  
  <p>UPDATE:</p>
  
  <p>I'm already using javascript to check the form, but this does not seem to work.</p>
  
  <pre><code>function submitForm() {
          if (formObj.Choice.value == '') {
              alert("Please select a value");
              return false;
          }
          return true;
      }
  </code></pre>
  
  <p>UPDATE 2: In answer to @h4b0 question:</p>
  
  <pre><code>&lt;input type="submit" value="Search" class="screen-reader-text button cf" name="SubmitButton" onclick="return submitForm();"&gt;
  </code></pre>