hello,
how can I make a checkbox required ?
my code
aspx:
<asp:CheckBox ID="cbIsAgree" CssClass="{CheckedBox:true, messages:{CheckedBox:'check me!.'}}" runat="server" Text="check me!" />
javascript :
$.validator.addMethod("CheckedBox", function CheckedBox(value, element) {
return $(element).is(':checked');
}
, 'check me!');
that code isnt working ... why ?