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 7538591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:09:35+00:00 2026-05-30T07:09:35+00:00

I have a feedback system in this website I’m building and users are asked

  • 0

I have a feedback system in this website I’m building and users are asked to provide feedback for the service they’ve received. They have a choice to either provide an actual feedback or skip the entire thing. I have 2 radio buttons (1 for positive; the other negative)

<input type="radio" name="rating" value="1" id="green" /><label for="green">Positive</label><br />
<input type="radio" name="rating" value="0" id="red" /><label for="red">Negative</label>

Then, I have a textarea for users to provide the actual feedback.

<textarea style="width: 95%;" rows="6" name="feedback"></textarea>

I’d rather have the textarea enabled ONLY if the user clicks on an actual radio button. If not, the textarea remains disabled. How should I go about this? (I’m thinking jQuery)

Thanks, guys.

[EDIT]

Thanks for the quick input, guys. Also, if I may add, what if let’s say I’m generating the rows from data in MySQL. Which makes the names (ie. for userid 1) name=rating[1] and name=feedback[1]. How do I select them using jQuery?

  • 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-05-30T07:09:36+00:00Added an answer on May 30, 2026 at 7:09 am
    $('input[name="rating"]').on('change', function() {
        $('textarea[name="feedback"]').show();
    });
    

    http://jsfiddle.net/933DJ/


    Update according to your comment:

    $('input[name="rating"]').on('change', function() {
        $('textarea[name="feedback"]').attr('disabled', false).focus();
    });
    

    http://jsfiddle.net/933DJ/1/

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

Sidebar

Related Questions

I helped develop a website for a local non-profit. I have asked for feedback
I have an application in which users can send me feedback. When they do
I have a project to setup an anonymous feedback form to our website. I
so let's say i'm building this contact management system. There is a USER table
Could I have some feedback on this Given new House(x ) sends a string
I am developing a user feedback system using ASP.NET and C#. I have multiple
I have previously asked this question and since I already accepted an answer, I
1st post on stackoverflow, hope to have great feedback :) I'm currently trying to
I have one query on which I would like to get your valuable feedback.
I would just like your feedback on something. Basically I have a value called

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.