I've been trying to find this solution for the past few hours, but no luck so far. How could i select some text (actually found that one already, but haven't tested completely yet) in a textarea and force it to scroll to that text? I've tried using scrollTop, but i don't really know how to calculate it properly with the number of lines of the wrapping textarea in mind.
Asked
Active
Viewed 2,051 times
1 Answers
1
Think this would be good for what you're trying to do:
http://flesler.blogspot.com/2007/10/jqueryscrollto.html
Can use it to scroll DOM elements, in this case the text you're selecting.

timothyclifford
- 6,799
- 7
- 57
- 85
-
Thank you, but i can't use jquery. I was hoping there was some simple function that i missed. – Marius Oct 07 '10 at 06:41