Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onclick #checkbox #hide #div #unchecked #show #div
ADD COMMENT
Topic
Name
2+2 =