title: Dynamic jQuery Validate error messages with AddMethod based on the element
body: <p>Let's say I have a custom AddMethod to jQuery Validate like:</p>
  
  <pre><code>$.validator.addMethod('min-length', function (val, element) {
      // do stuff
  
  // the error message here needs to be dynamic
  }, 'The field cannot be less than than '
       + element.attr('data-min') + // it is within the closure, but it can't grab it
     ' length.');
  </code></pre>
  
  <p>I can't figure out a way to get the <em>element</em> variable in question, and get any values from it.  What am I missing here?</p>