Examples are as follows:
var chk_value = [];//Define an array //name is the name defined by the name attribute of CheckBox$('input[name="time"]:checked').each(function () { chk_value.push($(this).val()); }); if (chk_value.length < 1) { alert("CheckBox option is empty") return false; } alert(chk_value );
The above example of selecting multiple values of CheckBox and determining whether CheckBox is empty is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.