html checkbox click any where on modal select first option 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();
}
});