input输入字母自动大小写转换

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset =utf-8">
    <title>测试大小写转换</title>
</head>
<body>
  大写:<input type="text"  value=""  onkeyup="this.value=this.value.toUpperCase()"> <br/>
  小写: <input type="text" value=""  onkeyup="this.value=this.value.toLowerCase()">
</body>
</html>
View Code

 

posted @ 2015-09-22 12:11  ordinary01  阅读(384)  评论(0编辑  收藏  举报