close modal if checkbox is checked code example
Example: if checkbox is checked open modal popup
$('input[type="checkbox"]').on('change', function(e){
if(e.target.checked){
$('#myModal').modal();
}
});
$('input[type="checkbox"]').on('change', function(e){
if(e.target.checked){
$('#myModal').modal();
}
});