<html><head></head><body>Hi Dan. It seems like the textbox value is being incorrectly initialized or erroneously appended/prepended with an extra line feed or carriage return. Check the code there. It could be a concatenation where it should be an assignment. <br><br><div class="gmail_quote">On January 31, 2014 10:27:19 AM CST, Dan Healy <dfhealy@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div><div><div>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.<br />
<br /></div>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.<br /><br /></div>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.<br />
<br /></div>Thanks, Dan H<br /></div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail">-- <br />Ubuntu-us-tx mailing list<br />Ubuntu-us-tx@lists.ubuntu.com<br />Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-tx">https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-tx</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>