hiding and showing certain field with jquery validation
<pre><code>rules: {
firstname: "required",
lastname: "required",
birthdate: {
    date: true,
    required: true,
    minimumAge: true
}, 
consent: {
  required: function(element) {
   return getAge($("#birthdate").val()) &lt; 18;
   $("#consent").show();
  }
}
});
$("#consent").hide();
</code></pre>

<p>I want to show a check box for consent if the age of the user is below 18, From the above code why isn't working?</p>
