key event for upper case
-------------------------------
<!DOCTYPE html>
<html>
<body>
<p>A function is triggered when the user releases a key in the input field. The function transforms the
character to upper case.</p>
Enter your name: <input type="text" id="fname" onkeyup="myFunction()">
<script>
function myFunction() {
var x = document.getElementById("fname");
x.value = x.value.toUpperCase();
}
</script>
</body>
</html>
for any quries visit http://scriptquery.blogspot.in/
for any quries visit http://scriptquery.blogspot.in/
11:01 PM
Share:
its very simple and easy
ReplyDeleteit is helping a lot for me
ReplyDelete