Jquery Validator Add Method validation for checkbox
<p>How to add the function like this into jQuery.validator.addMethod :</p>

<pre><code>if (theForm.chk_ccd.checked            &amp;&amp;
   (! theForm.chk_ccd_pos [0].checked) &amp;&amp;
   (! theForm.chk_ccd_pos [1].checked) &amp;&amp;
   (! theForm.chk_ccd_pos [2].checked))
{
  window.alert ('Please select data from the \"CCD Position\" field.');
  theForm.chk_ccd_pos [0].focus ();
  return;
}
</code></pre>

<p>and the validate function here :</p>

<pre><code>function ActionAdd (theForm)
    {
        $("#form").validate
        ({
            rules:
            {
                de_no: "required",
                de_name: "required",
                product_name: "required",
                plabel_no: "required",
            },
            messages:
            {
                de_no: "&lt;div class='error'&gt;Please provide Part No.&lt;/div&gt;",
                de_name: "&lt;div class='error'&gt;Please provide Model Name&lt;/div&gt;",
                product_name: "&lt;div class='error'&gt;Please provide Product Name&lt;/div&gt;",
                plabel_no: "&lt;div class='error'&gt;Please provide Part No. (Pack Label)&lt;/div&gt;",
            }
        });
    }
</code></pre>

<p>Anyone please help, I have stuck with that case.
Thanks</p>
