标签变灰问题
文本框的初始状态应该是可用的 点击按钮改变它的状态为不可用 当我刷新页面的时候为什么还是不可用
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
function change()
{
var status = document.getElementById("name");
if(status.disabled == true)
{
status.disabled = false;
}
else
{
status.disabled = true;
}
}
</script>
</head>
<body>
<input type="text" id="name" />
<br />
<input type="button" onclick="change()" value="change" />
</body>
</html>