Answers for "onclick checkbox hide div and unchecked show div"

0

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);
    }
});
Posted by: Guest on October-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language