title: "Simple" jquery validation example. Am I doing something wrong?
body: <p>right to the point. Have this form:</p>
  
  <pre><code>&lt;form action="/Home/AskQuestion" method="post" id="question"&gt;
  &lt;div class="name"&gt;
  &lt;label&gt;Name&lt;/label&gt;&lt;br&gt;
  &lt;input type="text" class="name required"&gt;
  &lt;/div&gt;
  &lt;div class="email"&gt;
  &lt;label&gt;Email&lt;/label&gt;&lt;br&gt;
  &lt;input type="text" class="email required"&gt;
  &lt;/div&gt;
  &lt;div class="subject clearleft"&gt;&lt;label&gt;Subject&lt;/label&gt;&lt;br&gt; &lt;select name="GroupId" class="emailSubject required" id="SubmitAQuestionEmailSubject"&gt;&lt;option value="0"&gt;Customer Service&lt;/option&gt;&lt;option value="1"&gt;Parts Request&lt;/option&gt;&lt;option value="2"&gt;Product Question&lt;/option&gt;&lt;option value="3"&gt;GCRR&lt;/option&gt;&lt;/select&gt;&lt;/div&gt;
  &lt;div class="question clearleft"&gt;
  &lt;label&gt;Question&lt;/label&gt;&lt;br&gt;
  &lt;textarea cols="20" rows="2" class="required"&gt;&lt;/textarea&gt;
  &lt;/div&gt;
  &lt;input type="submit" class="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and this code:</p>
  
  <pre><code>$(document).ready(function(){ $("form").validate(); });
  </code></pre>
  
  <p>A google search for "jquery.validate example" gives me back all sorts of hits for a "working" sample just like this, which will prevent a form submission if any of the class="required" fields are blank. The example on the jquery validate page works for me.</p>
  
  <p>My form submits anyway when I leave a "required" input blank. What the hell am I doing wrong?</p>
  
  <p>Edit: Lost some info that was originally in this post somehow...</p>
  
  <p>I am including both the jquery (1.6.1) and jquery validation (1.6 from the file header) script files. Jquery is included before jquery.validation. I've verified with firebug that the scripts are being found, and I'm not able to see any errors either in firebug or in the Firefox error console. </p>
  
  <p>Edit2:</p>
  
  <p>Interestingly, replacing the $("form").validate() with this code seems to trigger validation, but again, only the first input in the form (name) is validated...</p>
  
  <pre><code>$(".submit").click(function (evt) {
      if ($("form#question").validate().form()) {
          alert("valid");
      }
  });
  </code></pre>