So basically what I'm trying to do is to make a series of elements appear when a checkbox is checked and if it has a particular class. But only if the checkbox is checked.
Here is the code for an individual checkbox and class:
$('#arcuate').change(function() {
if ($('#arcuate').checked == true && $('.card').hasClass('arcuate') ) {
$('.card').addClass('reveal')
} else {
$('.card').removeClass('reveal')
}
});
Aucun commentaire:
Enregistrer un commentaire