S
Simon
Please, don't be mad at me for posting another question here..
It's (again) about the carotposition in a textarea, i really have tried to
find a solution through the internet but i haven't succeed in finding the
right one yet.
Enough introduction, I do know exactly what i want. And that is:
I want to know when the carot(cursor) is in the first row of the
textarea(although rows do not really exist, i know) and I want to know when
the cursor is in the last row of the textarea.
Why do I want to know that?
Because when the cursor is in the first row and the keycode for "arrow-up"
event fires, the focus has to leave the textarea and go to the field above
it.
Same goes for the last row, when the arrow-down is pressed it has to go to
the next field.
And when it's in between the first and last line, nothing should happen but
goiing up and down the textarea.
Thanks,
Simon
It's (again) about the carotposition in a textarea, i really have tried to
find a solution through the internet but i haven't succeed in finding the
right one yet.
Enough introduction, I do know exactly what i want. And that is:
I want to know when the carot(cursor) is in the first row of the
textarea(although rows do not really exist, i know) and I want to know when
the cursor is in the last row of the textarea.
Why do I want to know that?
Because when the cursor is in the first row and the keycode for "arrow-up"
event fires, the focus has to leave the textarea and go to the field above
it.
Same goes for the last row, when the arrow-down is pressed it has to go to
the next field.
And when it's in between the first and last line, nothing should happen but
goiing up and down the textarea.
Thanks,
Simon