Java Script Text Area Problem

Dan Healy dfhealy at gmail.com
Fri Jan 31 16:27:19 UTC 2014


I have an application where a student is presented with a question and the
cursor is put at the beginning of a text area where he can enter the
answer.  After entering his answer, when he hits the enter key, his answer
is checked against the correct answer.  If his answer is incorrect, I want
to clear the text area and return the cursor to the beginning of the text
area.

What happens is the text area is cleared, but the cursor goes to the second
line of the text area and he has to hit the backspace key before entering a
new answer.

This seems like a straight forward coding problem, but I have been working
on it for over a year and can't make it work correctly.  Any ideas would be
greatly appreciated.

Thanks, Dan H
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-us-tx/attachments/20140131/a7b9e3b1/attachment.html>


More information about the Ubuntu-us-tx mailing list