I've recently launched a website that allows users to post questions and receive responses from others. Each question is housed in a div
, which then contains another div
with the CSS property of display: none
.
Within the main div
, there's a button that triggers the opening of the reply or comment form within the nested div. So far, my code functions correctly.
However, I'm encountering an issue where clicking on the comment button opens all other hidden reply-section div
s, rather than just the one associated with the specific question being acted upon. How can I modify my code to target only the relevant div when activating the reply button?