on modal click chek on checkbox why? 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();
}
});