I have a web page, that upon entering shows a modal that requires validating a mandatory checkbox in order to access the site, how could I do it so that I only leave the modal and enter the site when all the checkboxes are validated?
I have a web page, that upon entering shows a modal that requires validating a mandatory checkbox in order to access the site, how could I do it so that I only leave the modal and enter the site when all the checkboxes are validated?
You can use JQuery to validate
var cnt=$("input").length;
var checados=$("input:checked").length;
if(cnt<checados){
alert("Incompletos");
}