$("#shengchanriqi<%=currentrec%>").val(值)
<html>
<head>
<title>1</title>
<script type=text/javascript>
var quiz = ["gay?<br/> <input type='radio' name='ga' value=y>yes <input type='radio' name='ga' value=n>no<br/>",
"lesbian?<br/> <input type='radio' name='le' value=y>yes <input type='radio' name='le' value=n>no<br/>",
"sex?<br/> <input type='radio' name='se' value=y>male <input type='radio' name='se'value=n>female<br/>"]
var f = document.getElementsByName("ga")
var s = document.getElementsByName("le")
var t = document.getElementsByName("se")
function checkanswer() {
if (f.length) {
if ((f[0].checked == true)) {
document.getElementById("a").innerText = "correct"
}
else document.getElementById("a").innerText = "the answer should be yes"
}
if (s.length) {
if ((s[0].checked == true)) {
document.getElementById("b").innerText = "correct"
}
else document.getElementById("b").innerText = "the answer should be yes"
}
if (t.length) {
if ((t[0].checked == true)) {
document.getElementById("a").innerText = "correct"
}
else document.getElementById("a").innerText = "the answer should be male"
}
}
</script>
</head>
<body>
<script>
var a = parseInt(Math.floor(Math.random() * 3))
var b = parseInt(Math.floor(Math.random() * 3))
while (a == b) {
var a = Math.floor(Math.random() * 3)
var b = Math.floor(Math.random() * 3)
}
document.write("1." + quiz[a] + "<br/>")
document.write("<div id='a'></div>")
document.write("2." + quiz[b] + "<br/>")
document.write("<div id='b'></div>")
</script>
<input type="button" name="submit" value="Submit" onclick="checkanswer()">
</body>
</html>