JS 求帮忙修改问题!
请问如何获取这个的值呢?代码如下!
<!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>
<title>123</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>
<form name="myform" action="#">
name:<input type="text" name="name">
age:<input type="text" name="age">
<p>
<label><input type="radio" name="aa" value="1" />22</label><br />
<label><input type="radio" name="aa" value="2" />44</label>
</p>
<select title="浏览器进程" onchange="doChange(this)" name="mo">
<option>2013年7月</option>
<option>2013年8月</option>
</select>
</form>
<input type="button" id="but" value="ok";>
</div>
<div id="d1" class="b" style="width:300px; height:100px; float:left; margin:50px; background:#CCC">asdf</div>
</body>
<script>
function aaaaa(){
var name=document.myform.name.value;
var age=document.myform.age.value;
var aa=document.myform.aa.value;
var mo=document.myform.mo.value;
document.getElementById
("d1").innerHTML="name:"+name+"<br>age:"+age+"<br>aa:"+aa+"<br>mo:"+mo;
}
document.getElementById("but").onclick = aaaaa;
</script>
</html>