K
Kalyan
Guest
Hi all..
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 <input type="text" id="myTxtBox"... and the text dynamically converts to uppercase. But, when I retrieve the text from the textbox through document.getElementById("myTxtBox").value, I still get the lowercase letters. Is there any method to retrieve the transformed text from the textbox through javascript? Please help..... Thanks a lot
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 <input type="text" id="myTxtBox"... and the text dynamically converts to uppercase. But, when I retrieve the text from the textbox through document.getElementById("myTxtBox").value, I still get the lowercase letters. Is there any method to retrieve the transformed text from the textbox through javascript? Please help..... Thanks a lot