title: using depends with max - jquery validation
body: <p>I need to add a conditional max value on a field using <code>jQuery validation</code>. I learned about <code>depends</code> but somehow I think the validate is not working.</p>
  
  <p>This is the block of code. The <code>dropdown</code> selection is working properly. I had placed an <code>alert</code> and it gives the desired value. However, the <code>max</code> validation doesn't work.</p>
  
  <pre><code>rules: {
     txtFirstName: { required: true,
       max: { depends: function (element) {
                var dropdown1 = $("#ddl option elected").val();
                if (dropdown1 == "C") {
                   return 100;
                }
                else {
                   return 200;
                }
  }
  </code></pre>
  
  <p>What am I doing wrong here? Or am I missing something?</p>