1. short summary – each person compiles their own
  2. you need to enter the html/css/js code so that it works on the WB page

Muusika küsitlus

Küsimused Vastused
Milliseid muusikuid/ansambleid sa tead?


Mida arvad muusika kuulamisest koolis?
Mitu tundi päevas sa kuulad muusikat?
Kas sa kuulad raadiot?
Milliseid raadiojaamu oskad nimetada?
Millist muusikat sa kõige rohkem kuulad?

Kokkuvõte:


ElementMeaningExample in this survey
<form id=”muusikaVorm”>form for all questionsMusic form
<table> … </table>question layout formatwhole survey is table based
<input type=”checkbox”>multi–selectQueen / Metallica / Ed Sheeran
<textarea>multiline text“What do you think about music at school?”
<input type=”range”>slider 0–12hhours per day
<input type=”radio”>choose oneradio: Yes / No
<input type=”text”>single line inputradio stations
<select>dropdown menumusic 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.