jQuery check box validation
<p>i try to implement this code in my work..yes it was right except for checkbox validation </p>

<p><a href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo/" rel="nofollow">http://www.geektantra.com/projects/jquery-form-validate/advanced_demo/</a></p>

<p>i have a form that send data selected on check box list </p>

<p>name ; AccessLvl[]
id ; AccessLvl </p>

<p>and i use the following javascript code </p>

<pre><code>  jQuery("#AccessLvl[]").validate({
                    expression: "if (isChecked(VAL)) return true; else return false;",
                    message: "Please check at least one checkbox"
                });
</code></pre>

<p>but i failed to display the error message... even i tried the original tutorial at above link the checkbox is not working... </p>

<pre><code>  echo' &lt;span id="check" class="InputGroup"&gt;';
for($i =0; $i &lt; $num_rows; $i++)
{           
$row = mysql_fetch_array($dbComm);      
echo'&lt;label for="'.$i.'"&gt;';
echo '&lt;tr&gt;&lt;CENTER&gt;&lt;td style="font-family:Verdana;font-size:12px;" align="center"&gt;&lt;input  value="'. $row['VALUE']. '" type="checkbox" name="AccessLvl[]" id="AccessLvl"   /&gt;&lt;/td&gt;&lt;td style="font-family:Verdana;font-size:11px;width:80%;"&gt;' . $row['DESCRIPTION'] . '&lt;/td&gt;&lt;/tr&gt;&lt;tr style="background-color:#D7D7D7;"&gt;&lt;CENTER&gt;';                                                 
echo'&lt;/label&gt;';
}



echo '&lt;/tr&gt;&lt;/table&gt;';
echo'&lt;/span&gt;';
</code></pre>
