Answers for "how to get checkbox value in jquery while checkup or unchecked"

1

get unchecked checkbox jquery

if ($("#check_box_id").is(':checked')) {
  alert("checked");
}else{
  alert("unchecked");
}
Posted by: Guest on February-13-2021
0

how to get checked and unchecked checkbox value in jquery

$('#submit').click(function(){
		var redval = $('.red').val();
		var grenval = $('.green').val();
		$('.showCheckedValue').text(redval+'&'+grenval );
	});
Posted by: Guest on May-26-2021

Code answers related to "how to get checkbox value in jquery while checkup or unchecked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language