/    Sign up×
Community /Pin to ProfileBookmark

Two Variables in Dynamic Update….

I have a n00b question here. I am working on a page that will accept values from a text box (an integer) and a drop down menu (integers 1-25). Without submitting the form, I want to be able to calculate the text box / drop down menu.

I have no idea how to do this. Dynamically updating 1 variable is easy, but for the life of me, I can’t figure out what I’m doing wrong. Any assistance would be greatly appreciated.

Mike

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzNov 05.2005 — Perhaps you could show us your code.

[url=http://www.thecounter.com/stats/2005/October/javas.php]Keep in mind that about 10% of Internet users use a browser that doesn't have JavaScript enabled.[/url]
Copy linkTweet thisAlerts:
@NedalsNov 05.2005 — form values are always passed as strings, NOT numbers

Add 'parseInt(value)' to your javascript.
×

Success!

Help @ixlr8 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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