title: jQuery Validate plugin not working
body: <p>This is driving me nuts. The jQuery validation plugin doesn't seem to be doing anything at all. Here's the code: <a href="http://jsfiddle.net/pkyGf/" rel="nofollow">http://jsfiddle.net/pkyGf/</a>  </p>
  
  <p>This is the validate code which is causing the error.</p>
  
  <pre><code>&lt;script&gt;
      $(function(){
        $('#purchase').validate({
          rules:{
            course:{
              minLength:1
            },
            creditCard: {
              required: true,
              creditCard: true
            },
            expMonth: {
              required: true,
              min: 1,
              max: 12,
              digits: true
            },
            expYear: {
              required: true,
              min: 12,
              max: 60,
              digits: true
            }
          }
        })
      })
    &lt;/script&gt;
  </code></pre>
  
  <p>Thanks to anyone who can help.
  EDIT: solved, see below.</p>