I need to validate if the age for a alcohol website. And what I need is all here. I\'m nearly there but I\'m not sure is correct . Locally doesn\'t work. I need the
$('.submit').click(function() { should be $('#submit').click(function() {
$('.submit').click(function() {
$('#submit').click(function() {
although there is some weird code that I don't understand and causes an error
$('input[type="checkbox"]:checked').length > 0();