if checkbox is checked open modal popup

Solutions on MaxInterview for if checkbox is checked open modal popup by the best coders in the world

showing results for - "if checkbox is checked open modal popup"
Aubin
25 Jan 2020
1$('input[type="checkbox"]').on('change', function(e){
2   if(e.target.checked){
3     $('#myModal').modal();
4   }
5});