Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8821355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:49:59+00:00 2026-06-14T05:49:59+00:00

I have a comment tree similar to Reddit’s. People will need to be able

  • 0

I have a comment tree similar to Reddit’s. People will need to be able to reply the comments by clicking a reply link, and then a form with a textarea should come. I tried using the .show() method, but there is more than one comment, and when you click reply it shows all the forms for every comment. How can i fix this? What should i look into?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:50:01+00:00Added an answer on June 14, 2026 at 5:50 am
    1. You’ll need to set a class for each textarea (A different class for each one).
      Let’s say:

      <textarea class="commentAnswerBox1">Answer here...</textarea>

    2. Now you have to set up a class for each comment answer button
      Like this

      <input type="button" class="btnAnswer1" value="Answer this comment" />

    3. Now you can call a function that recognizes which btnAnswer was clicked, and show only the correspondent commentBox.

    You can use Class or IDs, or also create an attribute, it doesn’t matter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Comment object. Each comment can have child comments. Each comment tree
I have a comment section and a reply to comment section on my social
I have a list of nested comments that essentially form a tree. //Non-Relevant properties
I have a recursive-descent tree object. I want to be able to set a
I have Comment as a polymorphic model. It is attached to Post, Review, etc.
I hope I am clear enough. My data set is populated I have comment:CommentVO;
I have a Comment class with a :foreign_key of post_id in the Post class.
I have a Comment model in my app but am encountering a lot of
I'm trying to figure out how I can have a comment header automatically added
I have found a comment in a Gemfile: # ruby-debug19 is currently broken in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.