I use a function to turn the contents of a string to uppercase.
function uppercase()
{
SearchPropForm.PropSearch.value = SearchPropForm.PropSearch.value.toUpperCase();
}
I call it on the onkeypress event and it changes each letter to uppercase as it is typed.
However, if after typing something you move the cursor back a couple of characters to correct something – and press backspace – the cursor automatically moves to the end of the string – so it is in the wrong place to type your corrected character.
Can anyone tell me how to turn a character into uppercase as you type it rather than turning the whole contents of a field into uppercase.
Thanks for any help.