How to get the validator method work for Checkbox
<p>I am trying to add a validation method to the jquery Form  validate </p>

<pre><code>&lt;script type="text/javascript"&gt;
    $.validator.addMethod(
            "FHM",
            function (value, element) {
                var StdHrs  =$('#frmStdHours').val();       
                var OTHrs   =$('#frmOTHours').val();        
                var TrvHrs  =$('#frmTravelHours').val();
                var SUM     =StdHrs+OTHrs+TrvHrs;
                if(SUM &gt; 4)
                    return (value ==false);
                else
                    return (value == true);
            },
            "Please Change the actual hours to less than 4 or Uncheck  Four Hour Min."
    );
    $(document).ready(function(){
        $("#Form").validate({   
            rules: 
            {
                fld4HrMin:
                {
                    FHM:true
                }
            }
        });
    });
&lt;/script&gt;
</code></pre>

<p>html</p>

<pre><code>&lt;form id="Form"&gt;
  &lt;input type="checkbox" name="fld4HrMin" id="fld4HrMin"&gt;
  &lt;input type="text"  size="5" name="frmOTHours" id="frmOTHours" value="0" &gt;
  &lt;input type="text"  size="5" name="frmTravelHours" id="frmTravelHours" value="0"&gt;
  &lt;input type="text"  size="5" name="frmStdHours" id="frmStdHours" value="0" &gt;
&lt;/form&gt;
</code></pre>

<p>this is not working---the error is the error message is being shown up always</p>

<p>What I am trying to do is if sum of the three input boxes is greater than 4 ,if it is the checkbox should be unchecked if it is less than 4 the check box should be checked.</p>
