#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    23
    Rep Power
    0

    Add 2 textfields' values together with button


    Hi everyone.

    My HTML/Javascript boardgame has 6 players.

    Each player keeps track of their own cash, they each have a 'wallet' form.

    On each form, I need to have a 'current cash' textfield that gets updated dynamically by entering a number in a 'cash adjustment' field (each player has their own cash-adjustment field).

    Then the player simply presses a + or - button to add or subtract that amount to/from the 'current cash' field for that player.

    Also, the current cash default should be $6110 (amount given to each player at the start of a game).

    I'm a designer moreso than a coder, guys, so go easy on me please
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    24
    Rep Power
    0
    I'm not sure how you're going to make a board game with just HTML/JavaScript ?
    After reload everything will be back to default.

    Anyways, that's not your question ;

    I made a little demo .

    If you still got any questions please ask.

    Léon

    Comments on this post

    • Winters agrees

IMN logo majestic logo threadwatch logo seochat tools logo