onclick checkbox hide div and unchecked show div code example
Example: onclick checkbox hide div and unchecked show div
$(".answer").hide();
$(".coupon_question").click(function() {
if($(this).is(":checked")) {
$(".answer").show(300);
} else {
$(".answer").hide(200);
}
});