|
-
Feb 4th, 2006, 10:30 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Insert text at cursor location in textbox or selection.
Hello,
I have a textbox which (for example) has the text "abc123" in it. I would like to be able to do two things. One...is .... If I click my mouse between the "abc" and the "123", I would like to press a button and insert the letter "Z". So the resultant would look like this "abcZ123". Two...I would like to be able to select part of the text in the textbox..(for example the "ab" part and then press the button and insert the letter "Z"...so the resultant would look like this "Zc123".
I believe this has to do with .selectionstart...but....I have not been able to figure it out yet.
Thanks for any directions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|