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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:21:29+00:00 2026-06-14T10:21:29+00:00

I have a WordPress form with a Radio Button input label and value that

  • 0

I have a WordPress form with a Radio Button input label and value that I need to dynamically generate depending on the input of a another field.

I have no control over how the form is generated (without digging into the plugin, and time is is very much against me, so I just need a quick solution)

WordPress is generating html as follows

<input type="text" name="vfb-22" id="vfb-4-50-22" value="" class="vfb-text  vfb-medium number" />
<label for="vfb-4-50-22" class="vfb-desc">Number * 4.50:></label>     

<span>
  <input type="radio" name="vfb-28" id="vfb-and-then-28-1" value="4.50" class="vfb-radio inline" /> 
  <label for="vfb-and-then-28-1" class="vfb-choice">4.50</label>
</span>

If someone enters a value into field A(vfb-22). I need jQuery to change the value of the input radio button and the label to A * the current value

I currently get all the relevant figures and update another field (vfb-42) correctly as follows

$('#vfb-monthly-tickets-4-50-each-86').change(function() { 
  var number=$('input[name=vfb-86]').val();
  var multiplier=4.50;
  total=number*multiplier;
  $('input[name=vfb-42]').val(total);
})

All I’m missing is changing the values of the radio button (vfb-28). I’ve had a few stabs, with no success to either label of value.

Grateful for any thoughts

  • 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-14T10:21:30+00:00Added an answer on June 14, 2026 at 10:21 am

    Admittedly this is just a refactor of your own method, but you could try:

    $('input[name=vfb-22]').change(function() { 
      var number=$('input[name=vfb-22]').val();
      var current = $('input[name=vfb-28]').val();
    
      total=number*current;
    
      $('input[name=vfb-22]').val(total);
      $('.vfb-choice').text(total);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I add a radio button in my wordpress widget form? I have
I have a form in WordPress that has a dynamically generated text box so
I'm using wordpress and I have a form that I need to validate. I
I have a WordPress site with a form that I need to add a
i have a wordpress site that when a form is filled out, if an
At http://tinyurl.com/3rcedo2 I have a WordPress 3.3.1 Cforms 11.6.1 form that is supposed to
I have a standard HTML form on a WordPress post that the visitor will
I have developed a Wordpress site that loads pages dynamically using the .load function.
I have made a placeholder web form: <input type=text value=Search onfocus=if (this.value == 'Search')
I have a hidden form field that stores the values of a jQuery UI

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.