Help on Javascript and html needed
March 10th, 2010
I have a textbox in my page which should automatically convert the keyed-in text to upper-case. I previously did it through conversion on keypress event through javascript. But when I made any typing mistake and want to edit it, the left arrow is not allowing me to go back. Instead, I have to use backspace, undo the text and then retype the correct one.
I also tried the style="text-transform:uppercase" in the
Is it necessary that the text shows as uppercase on screen? If not, then you can just as well retrieve the text as lowercase, and convert them using the string.toUpperCase() method.
Where do you retrieve that value?
If its in another text-box or text-area, you can try to set its style attribute to 'Uppercase' too.
I need that from the current textbox, in which the user is typing.
Doing both the style thing and onKeyUp="" thing wouldnt solve my problem either. since, doing both doesnt make any difference.
Anyways, thanks for your replies..
If its in another text-box or text-area, you can try to set its style attribute to 'Uppercase' too.
#If you have any other info about this subject , Please add it free.# |