Sumbit form with Enter key and search for the cursor
<p>I have a text box in my page which the user will type something to submit. However, I do not want to have a submit button but instead I want to listen for the Enter key press in order to submit. </p>

<p>The thing is, there will be couple of textboxes in this one page and I only want to submit the textbox that has just been typed into.</p>

<p>I know how to find out which key was pressed using jquery but I think in my scenario, I need to see if the cursor was inside a specific textbox. is this right? if so, how is this achieved using jquery? In general is my approach ok? or should I definitely have a submit button?</p>

<p>kem...</p>
