JSArray, radio, forms, timer

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
gamebit07
Forum Newbie
Posts: 4
Joined: Mon Feb 21, 2011 5:20 pm

JSArray, radio, forms, timer

Post by gamebit07 »

I have few questions (in the Q[] array) four options to them in the op1-4 array.
This basically is a multiple option, single choice questions, all the data stored in the arrays.



The code given below does not work, please let me know how to go about, thanks!!

<script language = "JavaScript">
for(i=1;i<=10;i++)
{
<form name="Quiz Test">
document.write(Q+"</br>");
<input type="radio" name="choice" value=op1> document.write(op1)<br>
<input type="radio" name="choice" value=op2> document.write(op2)<br>
<input type="radio" name="choice" value=op3> document.write(op3)<br>
<input type="radio" name="choice" value=op4> document.write(op4)<br>
//<input type="submit" onclick="get_radio_value()">
</form>
}
</script>



Besides this I want to make it timed, how could i go about. Say 5 minutes for these 10 questions
Post Reply