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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:00:38+00:00 2026-05-27T15:00:38+00:00

I have programmed an online assessment which can calculate the total score and display

  • 0

I have programmed an online assessment which can calculate the total score and display it as a percentage. However, each of the questions pertain to different categories and I would like to be able to calculate and show the results for the different categories.

Example: I need to sum radio buttons 1, 9, 17, 25 & 33 for the “career” category and display the result in the “career” category text field in the results box at the bottom of the page. I have 8 categories and don’t want to put all the questions for each category together because the person taking the assessment will figure out how it’s calculated and might manipulate it to get a higher score. I have googled so many alternatives and they only show adding(sum) radio buttons consecutively. Please can someone help me with the code for this as I have no clue and have spent 2 days trying to figure it out.

  • 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-27T15:00:39+00:00Added an answer on May 27, 2026 at 3:00 pm

    In the name property of the radio button, you must add the category name. (eg. radiogroup23career)

    Then make a hidden input field in your page for each category.

    Have a logic in your javascript to add up each button by category(a part of the name field). $(‘input[name*=”career”]’).val(); (JQuery to search for an element by a part of the name)

    Then set the hidden input field with that value.

    Then do a form post, preserving the current results in the hidden fields.

    Do the same on page 2 just make sure to add the results to the results posted from the previous page.

    Hope this helps,
    pH

    See more details below:

    <input type="radio" name="group1career" value="1">Milk<br>
    <input type="radio" name="group1career" value="2" checked>Butter<br>
    <input type="radio" name="group1career" value="3">Cheese
    <input type="hidden" name = "currentcareertotal">
    

    And in your JQuery do as follows
    Loop through all your:
    $(‘input[name*=”career”]’).val() items.

    and add them up to a var named “careertotal”
    set that value to your hidden field.

    $('input[name="currentcareertotal"]').val(careertotal);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webservice programmed in coldfusion which I'm attempting to consume using c#.net.
I have programmed a proxy.php script (listed below), which would fetch an image specified
I have programmed an emulator, but I have some doubts about how to organizate
I have programmed in HTML, Java, CSS, C++, VB, an Python. I'm looking to
Once I have programmed GUI with Java and have used Form Layouts. Form layout
I have never programmed a gadget for Vista or Seven, but I would like
I have never programmed in visual basic before and my boss just told me
I have a Windows Communication Foundation (WCF) service programmed in C#. I need to
I have 10 dice that are all programmed the same as D1. D1 =
I have multiple IPs on a NIC. I've programmed a console application to connect

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.