title: Setting focus to a button next to a text box
body: <p>I have a question that is very similar to this one: <a href="https://stackoverflow.com/questions/286690/setting-focus-to-a-button-from-from-text-box">Setting focus to a button from from text box?</a></p>
  
  <p>On my page, there is a text box, with a button next to it. It is an ASP.NET page, but the button is just a standard input tag, and when clicked, there is a client side function called.</p>
  
  <p>I want it so that when you hit enter, that button is clicked. I have managed to set focus initially using <code>$("#mybutton").focus()</code>, but when you click into the text box, the button loses the focus.</p>
  
  <p>Is there any way to achieve what I want here?</p>