title: jQuery validation not working onchange
body: <blockquote>
    <p><strong>Possible Duplicate:</strong>
    <a href="https://stackoverflow.com/questions/3824608/jquery-custom-validation-method-issue">jQuery custom validation method issue</a></p>
  </blockquote>
  
  
  
  <p>I have a select list that is required. It is validating fine, but doesn't remove the error message when you change the select's value. I don't know why, I've used this same code before and not had this issue.</p>
  
  <p>The HTML:</p>
  
  <pre><code>&lt;table border="0" cellspacing="0" cellpadding="0" class="menu"&gt;
      &lt;tr&gt;
          &lt;form action="PHP/Nt6Subscribe.php" method="post" id="SinglePmnt"&gt;
              &lt;td width="211"&gt;
                  &lt;select name="technology" class="select"&gt;
                  &lt;option value="" selected="selected"&gt;&amp;nbsp;Please Select&lt;/option&gt;
                  &lt;option value="Interactive Brokers"&gt;&amp;nbsp;Interactive Brokers&lt;/option&gt;
                  &lt;option value="MB Trading"&gt;&amp;nbsp;MB Trading&lt;/option&gt;
                  &lt;option value="Patsystems"&gt;&amp;nbsp;Patsystems&lt;/option&gt;
                  &lt;option value="PFG"&gt;&amp;nbsp;PFG (Peregrine Financial)&lt;/option&gt;
                  &lt;option value="TD AMERITRADE"&gt;&amp;nbsp;TD AMERITRADE&lt;/option&gt;
                  &lt;option value="Trading Technologies"&gt;&amp;nbsp;Trading Technologies&lt;/option&gt;
                  &lt;option value="Vision Financial Markets"&gt;&amp;nbsp;Vision Financial Markets&lt;/option&gt;
                  &lt;option value="Hosted"&gt;&amp;nbsp;Zen-Fire&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/td&gt;
  
              &lt;td width="189"&gt;Single Payment of $995&lt;/td&gt;
  
              &lt;td width="211"&gt;
                  &lt;input type="hidden" name="item_number" value="34"&gt;
                  &lt;input type="submit" value="" class="orderNow" /&gt;
              &lt;/td&gt;
          &lt;/form&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The JavaScript code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          var validator = $("#SinglePmnt").validate({
              rules: {
                      technology: {
                          required: true
                      }
              },
              messages: {
                      technology: {
                              required: "Please select your broker technology"
                      }
              },
              errorElement: "span",
              errorPlacement: function(error, element) {
                  error.appendTo(element.parent("td"));
              }
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>To sum up it validates when you leave it on "Please Select" which has no value when you hit submit. If you change the value, the error doesn't disappear as it should.</p>