onclick checkbox hide div and unchecked show div

Solutions on MaxInterview for onclick checkbox hide div and unchecked show div by the best coders in the world

showing results for - "onclick checkbox hide div and unchecked show div"
Manuela
14 Jun 2019
1$(".answer").hide();
2$(".coupon_question").click(function() {
3    if($(this).is(":checked")) {
4        $(".answer").show(300);
5    } else {
6        $(".answer").hide(200);
7    }
8});
9
queries leading to this page
checkbox onclick show hide divon checkbox checked show divif checkbox is checked hide divcheckbox click amount display in div jqueryshow hide div using checkbox jqueryhide div on checkbox checkedshow element when checkboxhide show div with checkboxshow hide checkbox javascripton uncheck checkbox hide button jqueryon click of check box hideshow 2fhide div on checkbox click javascriptclick checkbox to show divshow hide div with checkbox jqueryhide div on checkbox clickcheckbox click div show hidejquery code for toggle input type checkbox and hide and show contentif it is check show else hideinput checked show and hide divdisable button if checkbox uncheckedcheckbox show hide divon checkbox checked hide and show divonclick checkbox hide and show divhide div when checkbox is checkedhow to hide or show a div when a checkbox is checked jqueryshow div on checkbox checkedon click of check box show divjavascript checkbox checked show hide divshow hide content on checkbox checkedjquery show and hide checked one div checkboxhow to show and hide div on checkboxoncheckbox checked show hide divshow different div on checkbox clickcheckbox checked div show and hidecheckbox click show hide divif checkbox checked show divon checkbox checked show and hide divcheck box if checked show input else hideshow div after checkbox html cssjquery checkbox click show hideafter check checkbox div show unchecked div hidejquery hide div checkbox falseshow div on checkbox clickjquery show if checkbox checked showjquery if checkbox checked display divshow hide div on checkbox checked jquerydiv hide only when all checkbox is uncheckedwhen check checkbox clicks show hidehide div if checkbox is checkedhide icon by check and uncheck using ajaxonclick checkbox hide divcheckbox checked in jquery show divif checkbox is checked then show div jqueryjquery show and hide checked one divif input checked jquery hid divcheckbox hide and show divonclick checkbox hide div and unchecked show div