Question : How should I correct my JavaScript to return the values of checkboxes?

How should I correct my JavaScript to return the values of checkboxes?

Here is the coding attached.

It's in Swedish language, and there are three checkboxes for choosing one's age. After choosing one's age, one should press the button "Skriv ut ålder" (print out age) whereupon there should be an alert with the text "Din ålder är ..." (Your age is...).

I receive a syntax error on line 31: </form>
Attachments:
 
Checkboxes for age (alert: "Your age is...")
 

Answer : How should I correct my JavaScript to return the values of checkboxes?

It should look like

onClick="alert('Din ålder är ' + DinAlder());"
Random Solutions  
 
programming4us programming4us