Skip to main content

Forums

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #294340
    Bhsand
    Participant

    Hi, I’ve tried to make this work, but I simply can’t get it to show the div, when the radio button with the class “yes” i checked.

    If I try to make a sibling div (instead of the input type=radio), and a on hover state change opacity, I can reveal the div, but not. when I try with radio button, and this code:

    https://codepen.io/bhsand76/pen/zYOrXea

    #294341
    Paulie_D
    Moderator

    You can’t do that with your current HTML sytucture as the input and div are not parent/child or siblings.

    The reveal div needs to come after the radio button in the same parent.

    https://codepen.io/Paulie-D/pen/JjPGQjG

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.