Category: >> JavaScript >> Easily Change Text To Lowercase Bookmark and Share

<< lastnext >>

Snippet Name: Easily Change Text To Lowercase

Description: Changes the text to all lowercase letters as soon as focus is removed from the text input.

Also see:
» Convert Extensions To Lowercase
» Create Filler Text

Comment: (none)

Author: CoderZone
Highlight Mode: JAVASCRIPT
Last Modified: December 01st, 2010

// as soon as focus is moved from the text input,
// the text will be converted to lowercase
<form name="testform">
  <input type="text" name="myinput" size=30 value="" onChange="javascript:this.value=this.value.toLowerCase();">
  <input type="button" value="Convert">
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© | users online: 7