<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>QUESTIONS</title>
<script language="javascript">
var sr = 0;
function nextquest()
{
sr++;
if(sr > 2) sr = 0;
document.forms['stas'].choise[sr].checked = true;
};
</script>
</head>
<FORM name="stas">
<div id="myquests">
<INPUT type="radio" name="choise" checked="checked"/> 1.
<INPUT TYPE="radio" name="choise"/> 2.
<INPUT TYPE="radio" name="choise"/> 3.
</div>
<br />
1. Question: London is a capital of... <br />
<INPUT type="radio" name="otv" checked="checked" /> Russian Federation <BR />
<INPUT TYPE="radio" name="otv" /> USA <br />
<INPUT TYPE="radio" name="otv" /> Great Britain <br />
<INPUT TYPE="radio" name="otv" /> Australia <br/>
<INPUT TYPE="button" name="dali" onclick="nextquest();" value="Next" />
</FORM>
<body>
</body>
</html>
so how to do that when pressing "Next" button a content of form will change to next Question with answers?How you can see by pressing Next it is turns horizontal radio buttons, but it must change question to next.
Next Question for example:
2. Who is Devid Backham
1) Basketball Player
2) Football Player
3) Hockey Player
4) Singer


Sign In
Create Account


Back to top










