Showing posts with label toUpperCase. Show all posts
Showing posts with label toUpperCase. Show all posts

Monday, 3 November 2014

How to uppercase of input field in onkeyup event?

Script Method:
<input type="text" id="ele" onkeyup="this.value=this.value.toUpperCase()" >
CSS Method:
Add style "text-transform:uppercase"
<input type="text" id="ele" style='text-transform:uppercase' >