JavaScript获取修改value的方法:
有些元素有value属性,如input、botton、select等,使用value属性可以修改它的值。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改value</title>
</head>
<body>
<input type="text" name="hello" value="Hello krray" id="hello">
<script>
var a=document.getElementById("hello");
alert( a.value);
a.value="你好,小凯"
</script>
</body>
</html>
