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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:19:38+00:00 2026-06-11T00:19:38+00:00

I have a form, with the 3 input type text. <input type=text id=one onkeyup=multiply()

  • 0

I have a form, with the 3 input type text.

<input type="text" id="one" onkeyup="multiply()" name="one">
<input type="text" id="two" name="two">
<input type="text" id="three" name="three">

<script>
function multiply(){
    one = document.getElementById('one').value;
    two = document.getElementById('two').value;
    document.getElementById('three').value = one * two
}
</script>

now i don’t have value in three, but it is a dynamic one, when i submit forum to (forumSubmit.php)then i get error of

undefiend index three

I searched & found this can be done with ajax, but i don’t want to use ajax, i want to make a page refresh

  • 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-11T00:19:39+00:00Added an answer on June 11, 2026 at 12:19 am
    <input type="text" id="one" onkeyup="multiply()" name="one" />
    <input type="text" id="two" onkeyup="multiply()" name="two" />
    <input type="text" id="three" name="three" />
    
    <script type="text/javascript">
    function multiply() {
        one = document.getElementById('one').value;
        two = document.getElementById('two').value;
        document.getElementById('three').value = one * two;
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a form like this: Name:<input type=text name=xxx id=name/> Type:<select> <option>xx</option> <option>xx</option>
I have a form: <form name=emailform id=emailform onsubmit=emailSubmit() method=post><div> <input type=text id=email name=email value=>
I have a table inside a form that looks as follows: <td><input type=text name=code[0]
I have a form input consisting of two radiobuttons, for one name, as below:
I have a form with two input fields, one text and one send button.
I have an input form with two textareas allowing a user to type in
I have form with multiple input type=radio with text next to them. I want
I have a form with some fields of type text and 2 fields (name
I have an HTML form with a bunch of input fields (of type text
$(function(){ $(#getitem).click(function(){ var txtval = $(#txt).val(); var number = ????? $('<input type=text name=txt'+number+' value='+txtval+'

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.