- short summary – each person compiles their own
- you need to enter the html/css/js code so that it works on the WB page
Muusika küsitlus
Kokkuvõte:
| Element | Meaning | Example in this survey |
| <form id=”muusikaVorm”> | form for all questions | Music form |
| <table> … </table> | question layout format | whole survey is table based |
| <input type=”checkbox”> | multi–select | Queen / Metallica / Ed Sheeran |
| <textarea> | multiline text | “What do you think about music at school?” |
| <input type=”range”> | slider 0–12h | hours per day |
| <input type=”radio”> | choose one | radio: Yes / No |
| <input type=”text”> | single line input | radio stations |
| <select> | dropdown menu | music style |
JS saada() function
- collects selected checkboxes
- reads textarea text
- reads slider value
- checks which radio button is selected
- reads text input radio stations
- reads selected
<select>music style
Builds one summary string
and renders it into <div id="tulemus"> using innerHTML.
After submit:form.reset() clears form fields
and clears the result text.

