Answers for "jquery checkbox is selected"

3

check whether a checkbox is checked in jQuery

if ($('#grepperRocks').is(':checked')) {
	// this checkbox is checked
}
Posted by: Guest on March-17-2020
0

jquery get selected checkboxes

var selected = [];
$('#checkboxes input:checked').each(function() {
    selected.push($(this).attr('name'));
});
Posted by: Guest on October-12-2020

Code answers related to "jquery checkbox is selected"

Code answers related to "Javascript"

Browse Popular Code Answers by Language