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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:18:26+00:00 2026-05-25T19:18:26+00:00

Really new to using jQuery and trying to find an example I need. 1)

  • 0

Really new to using jQuery and trying to find an example I need.

1) if I have, say, 5 radio buttons to choose an item, how do I pass the selected item to a hidden form field?

2) same question for a textarea. How do I pass the text written to a hidden form field and make sure it’s escaped safely for a form submission?

Thanks for any help.

  • 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-25T19:18:27+00:00Added an answer on May 25, 2026 at 7:18 pm

    You can just bind to the change event:

    <input type="hidden" id="myradiovalue" />
    <input type="radio" name="myradio" value="0" />
    <input type="radio" name="myradio" value="1" />
    
    $('input[name=myradio]').change(function() {
        $('#myradiovalue').val($(this).val());
    });
    

    And almost the same for textarea:

    <input type="hidden" id="mytextarevalue" />
    <textarea id="mytextareavalue"></textarea>
    
    $('textarea').change(function() {
        $('#mytextareavalue').val($(this).val());
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am really new to Python and I have been looking for an example
I need some help I am new to jQuery and I am trying to
I have some code I was given in jQuery and I am really new
I'm trying to make a really simple file upload using jQuery, without having to
I'm trying to pass information between domains using a combination of jQuery and WCF.
This is a simple question really. I've been using the new type of constructors
I'm really new to HTML, but I can't find anywhere how to return the
I'm having issues gathering data using JSON on the Songkick API. I'm really new
I'm using the jQuery Plugin jqModal . New to it, so i'm still learning
I'm fairly new to JQuery and Javascript in general. I don't think I'm trying

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.