title: TypeError for jquery validation script
body: <p>I want to try some simple example with jquery validate plugin in mvc application.
  I have a JS module with this method:</p>
  
  <pre><code>ValidateRestriction: function (element) {
      var inputs = $('form').validator();
      inputs.data("validator").checkValidity();
  
      $(element).validate({
          rules :{
              field: {
                  number: true,
                  "min": "1",
                  "max": "Infinity"
              },
              ignore: ".ignore",
          onkeyup: false
      }
      });
  }
  </code></pre>
  
  <p>But in console I get an error:</p>
  
  <blockquote>
    <p>TypeError: $(...).validator is not a function<br>
    var inputs => $('form').validator();</p>
  </blockquote>
  
  <p>In firebug I see that all needed JS functions are loaded. Verified in console:</p>
  
  <pre><code>&gt;&gt;&gt; $.fn.validate
  function()
  </code></pre>
  
  <p>What's the problem with this?</p>