1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

form javascript help

Discussion in 'JavaScript' started by neilfurry, Aug 22, 2016.

  1. #1
    Hello Mate,

    I need some help on this one:

    https://jsfiddle.net/jpyrdgcs/

    i have two identical forms in one page with different form id's but both have the same fields.
    what i need is when i make a computation from let say frm1 fields
    12 + 2 the answer will be on the 3rd field of frm1 only and not on the 3rd field of frm2.

    right now when i made computation from frm1, the same answer will display on both 3rd fields.
    can you help please.

    thank you
     
    neilfurry, Aug 22, 2016 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Here you go: https://jsfiddle.net/jpyrdgcs/2/
    However, that javascript is a bit cumbersome (using jQuery) - it would be better if you didn't use arrays for the names, but I'm guessing (hoping) there's a reason for that?
     
    PoPSiCLe, Aug 22, 2016 IP