So I have some code that changes the value of a text area while people are typing into it. Basically I take the string out of the text area and change it and put it back in.

In safari, the cursor doesn't move to the end of the string when I change the string. Does anyone know a trick that would get this done for me? Thankfully, in Firefox and IE focus() does that for you.

Thanks a ton.