How do I force uppercase for a "log-in" field? Trying to make it so when a user types in his/her name in the "log-in" field, it will force upper case. Seems it would be an easy tag <UPPER> but thats not the case.
put this in the <input> tag for your login field:
[tt]onBlur='MakeUpper(this)'[/tt]
That will fire an event every time the text box loses focus.
then put this inside the <head> tags in your html page [tt]<script>
function MakeUpper(obj) {
obj.value = obj.value.toUpperCase();
}
</script>
[/tt]
This function takes an form element object and makes it's value upper case.
Catch my drift? I hope this helped! ;-)
- Casey Winans
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.