Multiply A Number With A Variable

Discussion in 'JavaScript' started by domedia_ro, Jun 11, 2013.

  1. #1
    Hi,

    How could I multiply a number with another number I add in a text field?

    You can take a look here:
    www.madirish.net/tech.php?section=1&article=7 (sorry for the live link!)

    How can I add a text are box on the right of the radio button where I can insert a certain number, then get the result in the last place, like:
    x+y+z*y=X+Y+Z*Y

    Thanks !
     
    domedia_ro, Jun 11, 2013 IP
  2. jscg

    jscg Well-Known Member

    Messages:
    161
    Likes Received:
    5
    Best Answers:
    3
    Trophy Points:
    108
    Digital Goods:
    2
    #2
    Unclear question...
     
    jscg, Jun 11, 2013 IP
  3. domedia_ro

    domedia_ro Active Member

    Messages:
    236
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #3
    How can I multiply with a number , a variable number inserted by a user , a value from the radio button and post the result at the end, where the numbers are just added now.
     
    domedia_ro, Jun 11, 2013 IP
  4. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #4
    where does the first number come from, the one that isn't from the radio buttons or inserted
     
    aidanriley629, Jun 11, 2013 IP
  5. domedia_ro

    domedia_ro Active Member

    Messages:
    236
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    There are two numbers:

    Radio button number multiply with
    A number the user should insert
    ...
    Radio button number multiply with
    A number the user should insert

    Footer the numbers generated above are added and displayed.
     
    domedia_ro, Jun 11, 2013 IP
  6. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #6
    give me a sec
     
    aidanriley629, Jun 12, 2013 IP
  7. aidanriley629

    aidanriley629 Banned

    Messages:
    429
    Likes Received:
    23
    Best Answers:
    3
    Trophy Points:
    175
    #7
    Hey, did you still need help with this?
     
    aidanriley629, Jun 12, 2013 IP