$(document).ready(function(){
function checker() {
if ($(".check-box-label").css("background-color") === "none"){
$(".check-box-label").css("background-color", "#1F7566")
}else{
$(".check-box-label").css("background-color", "none")
}
};
});
$(".check-box-label").on("click", checker);
With this code, the .check-box-label background-color were suposed to alternate colors on click depending on the actual background-color value, why isn't it working? Thanks