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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:12:17+00:00 2026-06-18T03:12:17+00:00

Check this fiddle http://jsfiddle.net/8FXFE/6/ This code does show the message when a radio button

  • 0

Check this fiddle

http://jsfiddle.net/8FXFE/6/

This code does show the message when a radio button from name="txtNumber" is changed..

Now what i m trying to achieve is making a formula based on the values of name="txtSpace" & name="txtNumber" radio buttons..

My target is that suppose some one clicks on a radio button in txtNumber fields and another option in txtSpace fields there shall be some calculation of those in “output” window.
Calculation can be addition of values of selected radio in txtNumber fields txtSpace fields..

but i m stuck in code and not know how can i change it??

Junk code

<div class="textForm">
<input type="radio" name="txtNumber" value="100" checked="checked" />100
<input type="radio" name="txtNumber" value="200" />200
<input type="radio" name="txtNumber" value="500" />500
<input type="radio" name="txtNumber" value="1000" />1000
<input type="radio" name="txtNumber" value="10000" />10000
<input type="radio" name="txtNumber" value="other" />other
<input type="text" name="other_field" id="other_field" onblur="checktext(this);"
/>
</div>
  • 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-18T03:12:18+00:00Added an answer on June 18, 2026 at 3:12 am

    If I got your question right you want to display an output determined by both checked radio inputs.

    $(document).ready(function () {
        console.log("parsed");
        $("input[name='txtNumber'],input[name='txtSpace']").change(function () {
            $("#output").text("Changed to "+$("input[name='txtNumber']:checked").val() + " " +$("input[name='txtSpace']:checked").val()); 
        });
    });
    

    http://jsfiddle.net/8FXFE/8/

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

Sidebar

Related Questions

check out this fiddle: http://jsfiddle.net/5rmEe/ the goal is to uncheck the radio button when
I have the code that you can check in this fiddle: http://jsfiddle.net/4SCrp/5/ <form id=my_form>
check out this fiddle: http://jsfiddle.net/5rmEe/61/ var inputVal = false; //allow user to deselect a
Please check this fiddle: http://jsfiddle.net/cZTjd/1/ I need to make the dropdown list fully clickable.
Please check this fiddle http://jsfiddle.net/JH4Ew/1/ . I want align <p class=email> to the bottom.
http://jsfiddle.net/9aaNh/ Please check this Fiddle. I am having problem with spacing in between text
I have this code, please observe this fiddle: http://jsfiddle.net/VjhJ4/19/ When you hover over the
Check out this fiddle: http://jsfiddle.net/foreyez/hQ9ZR/ <table background='red'> <thead> <tr> <th style='width:3000px;background:red'>Students</th> </tr> </thead> <tbody>
Check out this fiddle: http://jsfiddle.net/mattball/nWWSa/ var $lis = $('ul.innerfade > li'); function fadeThemOut() {
Check out this fiddle: http://jsfiddle.net/sajYc/ The transition for the :after pseudo element works 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.