This will create the outlines of the form and the button at the end of the quiz that people press to get their score. Part 3: Making the questions Okay, here's a very basic question: What is your favorite color? Blue.
Red.
Violet.
Black.

The first line is the question itself, with and tags around it to make it bold. They're optional, of course. The rest of it is the form tags to set up Radio buttons... those are little circles that only allow one to be picked at a time. The VALUE="*" numbers will depend on what the answer is linked to... each on of your "type" answers will have a number associated with it. The NAME="a" value has to change for every question. It's easiest to just put these in alphabetical order, so for the next question, make them all "b" like this: How do you like your steak cooked? Violet.
Blue.
Red.
Black.

Put all the questions below the
tag and above the line. There you go. Part 4: Making the score Past this code in between your and tags:
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 yorum:

Yorum Gönder

var cat1 = ($("input[@name=q1]:checked").val() != "a"); var cat2 = ($("input[@name=q2]:checked").val() != "b");