Answer the question
In order to leave comments, you need to log in
How to show div on active radio?
Here is an example :
It is necessary to show the div hidden in it with the active radio, and remove it when changing.
Answer the question
In order to leave comments, you need to log in
If the div is in radio, then you can implement it like this:
$(".radio").click(function(){
// Прячем другие открытые блоки div
$(".hidden-content").removeClass("active");
// Добавляем div'y, который является потомком нажатого инпута класс active
$(this).children(div).addClass("active");
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question