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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:36:37+00:00 2026-06-16T09:36:37+00:00

Trying to pull information from my form input fields and calculate them using JavaScript.

  • 0

Trying to pull information from my form input fields and calculate them using JavaScript. It does not seem to be working.

HTML (default1.html)

<script type="text/javascript" src="multiplication.js" language="javascript"></script>  
<form>
    <table>
        <tr><!--Row 2-->
            <td class="tdSize7">
                <input class="input" name="name1" type="text"/>
            </td>
            <td class="tdSize7">
                <input class="input" name="source1" type="text"/>
            </td>
            <td class="tdSize8">
                <p>&#36;</p>
            </td>
            <td class="tdSize9">
                <input class="input" name="income1" type="text"/>
            </td>
            <td class="tdSize8">
                <p>X12</p>
            </td>
            <td class="tdSize8">
                <p>&#36;</p>
            </td>
            <td class="tdSize9">
                <input name="ann1" disabled="disabled"/>
            </td>
        </tr>
        <td class="tdSize9"><input class="inputSize2" name="" type="button" value="Calculate" onclick="addme(this.form)"/></td> 
    </table>
</form>

JavaScript (multiplication.js)

function addme(form) {
//Constant Variables
    const twelve = Number (12);
    const fourHun = Number (400);
    const fourHunEighty = Number (480);

//Monthly  Income 1
    var income1 = Number(frm.income1.value);
    var val = income1 * twelve;
    frm.ann1.value = val;
}

My JavaScript will not calculate and input my results back into my form.
This is just a sample of my code. I am hoping this will tell you enough and help you, in helping me fixing my problem.

  • 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-16T09:36:39+00:00Added an answer on June 16, 2026 at 9:36 am

    Did you intend to use form instead of frm? That is part of your problem

    Try:

    var income1 = Number(form.income1.value);
    var val = income1 * twelve;
    form.ann1.value = val;
    

    Or change

    function addme(form)
    

    to

    function addme(frm)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to pull information from the google contacts api. Using the
I am trying to pull address information from an XML document using XPath and
I am trying to pull information from another site. When I try and do
There is a website I am trying to pull information from in Perl, however
I am trying to pull in information from Asana API via JQuery.ajax() method. But
I have been trying to use the document.getElementByID to pull information from an HTML
How can I pull relevant packet information from a JpCap packet? I am trying
Well, I'm pretty much trying to figure out how to pull information from a
I am trying to pull dynamics from a load that I run using bash.
Im stuck trying to figure out how to pull the information from my pre-populated

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.