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

  • Home
  • SEARCH
  • 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 8365899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:46:34+00:00 2026-06-09T12:46:34+00:00

I have this Fiddle : http://jsfiddle.net/2nAEZ/3/ the idea is very simple… when the page

  • 0

I have this Fiddle : http://jsfiddle.net/2nAEZ/3/

the idea is very simple… when the page shows up all elements inside tags are hidden. except “Reply” button.

once “Reply” button clicked, the form appear with “Cancel” button.

but, how to make “Reply” button works on each row? not all forms show up when a Reply button clicked. thank you.

  • 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-09T12:46:36+00:00Added an answer on June 9, 2026 at 12:46 pm

    Try this jsFiddle example. I cleaned up your HTML (no dupe IDs) and changed the jQuery to operate on a per-row basis.

    jQuery

    $("form, .hide").hide();
    $(".show").click(function() {
        $(this).parents('tr').find("form,.hide").show();
        $(this).parents('tr').find(".show").hide();
    });
    $(".hide").click(function() {
        $(this).parents('tr').find("form, .hide").hide();
        $(this).parents('tr').find(".show").show();
    });​
    

    HTML

    <table><tr>
        <td>12345</td>
        <td>message here<br>
            <form action="" method="post">
            <textarea></textarea>
            <input type="button" value="Send">
            </form></td>
        <td>
            <button class="hide">Cancel</button>
            <button class="show">Reply</button>
        </td>
    </tr>
    <tr>
        <td>67890</td>
        <td>another message here<br>
            <form action="" method="post">
            <textarea></textarea>
            <input type="button" value="Send">
            </form></td>
        <td>
            <button class="hide">Cancel</button>
            <button class="show">Reply</button>
        </td>
    </tr></table>
    

    ​

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

Sidebar

Related Questions

i have a very conceptual question regarding jquery. i have this fiddle http://jsfiddle.net/zvCrN/ What
I am new in JQ. I have created this fiddle here: http://jsfiddle.net/SZ6mY/7/ All I
I have this fiddle: http://jsfiddle.net/yub2B/4/ HTML: <input type=text /> <input type=text /> <input type=text
I have this fiddle : http://jsfiddle.net/XjeCf/1/ that works like I want and this one
Ok, I have this fiddle http://jsfiddle.net/25J3M/6/ , I want to position the red and
I have isolated my problem in this fiddle http://jsfiddle.net/xYphz/ It uses the root model
Given this little fiddle: http://jsfiddle.net/5Sw3h/8/ I have a navigation panel to the left, a
I have created a fiddle to test this : http://jsfiddle.net/Ninjanoel/X6ShS/ which works fine :(
I have this fiddle: http://jsfiddle.net/9J5Fg/ When one box is open and I click on
See this fiddle: http://jsfiddle.net/uqJHf/ I have set the first column to show up with

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.