| View previous topic :: View next topic |
| Author |
Message |
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
|
Hmm.. well it's not exactly the same I think.. I'm just trying to put some text at the end of the text in a textarea when I click a button
So, im trying to get the position of the cursor in that textarea..
But it seems to me I should be able to use just the length of the text in the textarea or something.. and put the stuff after there..
Reply with quote
|
| |
|
|
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
|
Oh sorry, i never do that before..
I think my dumb idea:
Get all the text in the textarea, make sure it works.. you can check it with alert() in javascript
Reply with quote
|
| |
|
|
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
|
Well it started as: Why my createTextRange on my textarea always is undefined
Reply with quote
|
| |
|
|
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
|
Then add your new text in saved text (from textarea) that you already store in javascript variable
Reply with quote
|
| |
|
|
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
| |
Jackil Enthusiastic Coder
Joined: 24 May 2006 Posts: 97
| |
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
| |
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
| |
Poolkop Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 123
| |
optomeb Enthusiastic Coder
Joined: 19 May 2006 Posts: 113
| |
|