Check the box with a valid Name attribute. The name of each checkbox must be the same. Say: Name="CheckBoxForItems"
On the Click button, the event of the Create button: (In js)
Declare an array and use each function to check if any checkbox is checked:
var arr = new Array(); $('input[name="CheckBoxForItems"]:checked').each(function (i) { arr.push($(this).attr("id")); }); if(arr.length > 0) $("#ButtonId").submit(); }
source share