Hello Success-Oriented People,
I have a form. when my visitors are filling the form, i want some fields to start in tittlecase, i want in some fields to be uppercase without the visitor turning on the CAPLOCK key on the keyboard and some other fields to be lowercase. how do i do it?
Regards,
Olusegun
CASE PROBLEM
Moderator: General Moderators
Re: CASE PROBLEM
With JavaScript. A few methods, like intercepting user input or reformatting the string when focus leaves the box.
Be advised: many people don't like/get confused when they type something and see something else show up instead.
Be advised: many people don't like/get confused when they type something and see something else show up instead.
Re: CASE PROBLEM
you could use two different css class for form input fields.
Code: Select all
<style type="text/css">
.upper{text-transform:uppercase; color:#FF3333;}
.lower{text-transform:lowercase;}
</style>
</head>
<body>
<form action="" method="get">
<input class="lower" name="input1" type="text" />
<input class="upper" name="input2" type="text" />
</form>
</body>