0

How to make a JavaScript poll?

For one of my assignments I have to make a JavaScript poll using radio buttons - just a simple Yes or No one, and the result needs to be stored locally (so if for example, I pressed yes, then refreshed it, and pressed yes again, the number of yes would be 2). It also needs to auto submit as soon as one of the answers are pressed. Any help would be appreciated!

9th Apr 2019, 7:35 PM
Sam E
Sam E - avatar
2 Antworten
+ 1
Got one here but It's with javascript (and I suck at local and session storage so I'll add a link to where you can learn about it) - question 1 Yes or No - pressed Yes or No > saved - question 2 Yes or No - pressed Yes or No > saved - finished > submit results Here an example https://code.sololearn.com/W6rDWHjpsTst/?ref=app
9th Apr 2019, 8:19 PM
Roel
Roel - avatar
+ 1
- with local storage do you mean store it into a databas or some file? In that case use PHP - submit the answers to where?
9th Apr 2019, 8:16 PM
Roel
Roel - avatar