title: Jquery validation with zip codes
body: <p>I have a program that allows a user to enter a zip code to generate a google map. I want to make sure that the zip code is valid. To do so I am using the jquery validate method. Here is how my code looks:</p>
  
  <pre><code>$('#zipInput').validator({
      format: 'zipUS',
      invalidEmpty: true,
      correct: function () {
         //Code for correct
      },
      error: function() {
        //Error code here
      }
  });
  </code></pre>
  
  <p>The problem is that this is not working for me. I get the error <code>$('#zipInput').validator if not a function</code>. I have been looking for examples of the validate method online and I used this <a href="http://igorgladkov.com/resources/demos/jquery.validator/demos/zip_us_validation.html" rel="nofollow">link</a> to build my code. I have added <code>jquery.validate.js</code> to my web page as well (issue with incorrect sources maybe?) Any suggestions or examples that I could look at to help figure out my issue?</p>
  
  <p><strong>EDIT:</strong> Here is all of the scripts I use in order:</p>
  
  <pre><code>&lt;script src="jquery-1.5.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="jquery-ui-1.8.11.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  
  
  <pre><code>&lt;script type="text/javascript" src="jquery.jscrollpane.min.js"&gt;&lt;/script&gt;
  &lt;script src="mwheelIntent.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="jquery.validate.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
  &lt;script src="Default.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>