Tuesday, October 28, 2014

uppercase in jquery

Posted by Gnani Palepu  |  2 comments

 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:

2 comments:

Get updates in your email box
Complete the form below, and we'll send you the best coupons.

Deliver via FeedBurner
Proudly Powered by Blogger.
back to top