I have created one form with dynamically created check box\'s . And i have used one j query script that will check weather user has checked at-least one check box or not .Tf it
Try this code:
Add class to check box
print " \n";
jQuery function:
function Validate() {
var counter=0;
$( ".mycheckbox" ).each(function() {
if($(this).is(':checked'))
{
counter++
}
});
if (counter == 0)
{
alert("You have not selected an item to delete");
return false;
}
else
{
alert("Are you sure you want to delete "+counter+" records");
}
}