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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:34:06+00:00 2026-05-27T11:34:06+00:00

I have 2 radio button groups named group1 and group2 in a form, the

  • 0

I have 2 radio button groups named group1 and group2 in a form, the value of group 1 and group2 should appear in a the input box name total_size without clicking the submit button of the form

Example:

<form>
<input type="radio" id="m1" name="group1" value=1/>
<input type="radio" id="m2" name="group1" value=2/>

<input type="radio" id="cm1" name="group2" value=1/>
<input type="radio" id="cm2" name="group2" value=2/>


<input type="text" id="total_size" name="total_size" value="RADIO BUTTON GROUP 1 VALUE and RADIO BUTTON GROUP2 VALUE"/>

the format should be group1,group2m

  • 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-27T11:34:07+00:00Added an answer on May 27, 2026 at 11:34 am

    Hi I think you mean something like this.

    <form>
    <input type="radio" id="m1" name="group1" value='1' />
    <input type="radio" id="m2" name="group1" value='2' />
    
    <input type="radio" id="cm1" name="group2" value='1' />
    <input type="radio" id="cm2" name="group2" value='2' />
    
    
    <input type="text" id="total_size" name="total_size" value="RADIO BUTTON GROUP 1 VALUE and RADIO BUTTON GROUP2 VALUE"/>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    (function($) {
        $(function() {
            $('input[type="radio"]').click(function(e){
                value = $("input[name=group1]:checked").val() + ',' + $("input[name=group2]:checked").val();
                $('#total_size').val(value);
            });
        });
    })(jQuery);
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one group of radiobutton: <div id=id1> <input id=pack1 type=radio class=pack name=pack value=OK
I have a radio button group on a survey form whose html looks like:
I have two radio buttons: <input type=radio name=group1 />1 <input type=radio name=group1 />2 How
i have a submit form that consist of 1 group radio button. <div id=defectclass>
I have 2 radio button with 2 group. The structure is like this Main
I have a group of three radio buttons. Depending on which radio button is
I have a radio button on my Windows Form. How can I determine if
I have this group of radio buttons in which each of individual button has
I have a group of radio buttons in a multiple select quiz form and
I have a JSP/HTML form with text box and radio buttons. I am saving

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.