/    Sign up×
Community /Pin to ProfileBookmark

how to create a survey form

I am new to Javascript – I need to create a survey – say 15 questions, with 6 options/ question value 0 – 5.

Once all questions answered the total is displayed. Depending on the the total (4 options) a line of text will appear you are A, B, C, or D.

I have tried to modify a script which has text then 6 radio buttons, plus a total box. each time a button is selected the total increases by that value. so if i choose button with a value of 2 and then change my mind a select a button with a value of 3 the total displays 5 and not 3.

I would like each stage explained as I need to understand what each line does. I have read a number of books but they always seem to miss the bit that I need.

I hope someone can help

Thanks J

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Dan_DrillichJan 24.2003 — Please have a look at the following -

http://forums.webdeveloper.com/showthread.php?s=&threadid=2797&highlight=txtScoreNumber

It's a good starting point.

Cheers,

Dan
×

Success!

Help @jcc 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 5.3,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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