alcani
asked on
lower to upper case
Hi experts,
Could you please provide a simple script to change lower to upper case for each field in a html form?
Regards,
Could you please provide a simple script to change lower to upper case for each field in a html form?
Regards,
In css here is a working sample using a class you can attach to any element (div, p, span, li) http://jsbin.com/eferow/1/edit
code
Serverside languages will have this property as well. If you need to do mixed case, doing this serverside might be better, but this is quick and easy.
code
<!DOCTYPE html>
<html>
<head>
<style>
.lowercase{text-transform: lowercase;}
</style>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div><span class="lowercase">CONVERT THIS,</span> NOT THIS</div>
</body>
</html>
Serverside languages will have this property as well. If you need to do mixed case, doing this serverside might be better, but this is quick and easy.
Easy one Using Style:
<input type="text" name="name" id="name" onBlur="this.style.textTransform='uppercase';">
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks!
Open in new window
hthIvo Stoykov