How do I check whether a checkbox checked in jQuery?

Use prop():

let isChecked = $("#element_id").prop("checked");
if(isChecked){
	// true: logic goes here
}
else{
	// false: logic goes here
}

Demo: https://jsbin.com/minetuxoqe/1/edit?html,output