if checkbox is checked open modal popup 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();
}
});