<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>