验证码文本框自动变大写

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <label>
  <input type="text" name="textfield" onkeyup="this.value = this.value.toUpperCase();"/>
  </label>
</form>
</body>
</html>
posted @ 2012-08-03 12:13  xust  阅读(193)  评论(0)    收藏  举报