title: jQuery validator issue on Zend framework checkbox
body: <p>I have validation issue when I use ZF checkbox element.</p>
  
  <pre><code>$element = new Zend_Form_Element_Checkbox('iagree', array('uncheckedValue'=&gt;null,'checkedValue'=&gt;'Y','disableLoadDefaultDecorators' =&gt; true, 'class'=&gt;'required agreetc' ));
  $element-&gt;addDecorator('ViewHelper')
      -&gt;setRequired(true)
      -&gt;addErrorMessage('You must agree Privacy policy &amp; Terms of use');
  $this-&gt;addElement($element);
  </code></pre>
  
  <p>Above code outputs :    </p>
  
  <pre><code>&lt;input type="hidden" value="" name="iagree"&gt;
  &lt;input type="checkbox" class="required agreetc" value="Y" id="iagree" name="iagree"&gt;
  </code></pre>
  
  <p>This is my jQuery validator.</p>
  
  <pre><code>&lt;script language="JavaScript" type="text/javascript"&gt;
    $(document).ready(function(){
  
      $.validator.addMethod("agreetc", function(value, element) {
      return $('#iagree').is(':checked');
  }, "You must agree Privacy Policy &amp; Terms of Use.");
      $("#register").validate({ignore: ":hidden"});
  
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>all other fields are highlighting except check box. I have tried ignore but it is not working</p>
  
  <p>Other solution I tried. I made ZF code so that it will not output hidden field, but the server side check will not work that time. </p>