title: Changing box color using jQuery on email validation?
body: <p>I have an input box which tests whether the email in the box is a valid one. This is the script:</p>
  
  <pre><code>$("#myform").validate({
    rules: {
      field: {
        required: true,
        email: true
      }
    }
  });
  </code></pre>
  
  <p>This tests for the email. I also have this script which would change the color by adding another class to the form.</p>
  
  <p><code>$("#myform").toggleClass("othercolor");</code></p>
  
  <p>Im just not sure where to put this code. Sorry for the newby question just new to jQuery. Thanks =D</p>