js Realization of User Input Lowercase Letters Automatic Conversion to Uppercase Letters
- 2021-07-13 04:00:17
- OfStack
Examples are as follows:
<script language="JavaScript">
function toUpperCase(obj)
{
obj.value = obj.value.toUpperCase()
}
</script>
<body>
<input type="text" id="txt1" value="" onkeyup="toUpperCase(this)"/>
</body>