1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Javascript, values and arrays

Discussion in 'XenForo Development Discussions' started by Enguerran A, Jul 26, 2016.

  1. Enguerran A

    Enguerran A Well-Known Member

    Hi guys,

    I'm making a small widget for my board in order to calculate some stuff. It's supposed to be super basic and I was planning to use some javascript to get there but I'm facing a problem I cannot fix myself.

    I have a form with a select. I want my users to select one of the options, to enter a number and to get the results. I know it works without arrays, but i cannot use those stuff (I don't know how to do).
    Last edited: Jul 26, 2016
  2. Lawrence

    Lawrence Well-Known Member

    I'm not quite sure what you are asking, but if I do understand, can't you just pass each array key off to the JS as a separate argument? That is how I do it and it works well.
  3. Enguerran A

    Enguerran A Well-Known Member

    My knowledge is actually very limited, so beside using if and else if, I don't know what do to ^^'

Share This Page