/    Sign up×
Community /Pin to ProfileBookmark

need some help

I’ve seen sites that update select choices to previous select choices made, for example: ebaymotors.com when you select a car make it will update the options for models.

My site is going to have an input called sizes, where the user can type different sizes, example: small,medium,large.

I would like the form to autoupdate so when they hit a button or something a new thing will be added to the form for each size they just typed, example:
Price of size small: <input type=”text” name=”price0″>
Price of size medium: <input type=”text” name=”price1″>
Price of size large: <input type=”text” name=”price2″>

and if their sizes were: pt,qt

the form would update with:
Price of size pt: <input type=”text” name=”price0″>
Price of size qt: <input type=”text” name=”price1″>

any ideas?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @matchew spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...