if ($(".class").is(":checked")) { $(this).parent().addClass("current"); }