2
good evening I would like to know how I can hide and show my div
with the class clic
as per the checkbox
selected. I have several checkbox
and as I select or deselect the checkbox
i want it to show the element and hide in case I desiccate. I tried it this way:
HTML:
<div class="clic" style="display:none"></div>
jQuery:
if ($(this.checked)) {
$(this).closest(".hovereffect").find(".clic").css("display", "block");
} else {
$(this).closest(".hovereffect").find(".clic").css("display", "none");
}
with this code I can insert the element but when I desiccate the element it would have to hide the class clic again and it does not hide anyone could help me?
thanks guy had not even seen this mistake was himself vlw by the reply
– Gustavo_dev
Mark the answer as accepted, please.
– relaxeaza