动态改变input样式
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>内容被改变</title>
<script language=javascript type=text/javascript>
function check(obj){
document.getElementById(obj).style.color="#ff0000" ;
console.log(document.getElementById(obj).style); }
</script>
</head>
<body>
<input id="userid" type="text" name="userid" value="A000000000" onchange="check(this.id)" style="color: black;">
</body>
</html>
初始input
动态变化input样式