Just found these and thought they may be useful to someone out there. The situation is this, you have a form that pops up when you click a button and you want to focus the cursor on the first input field in the form so they can start typing right away. This is a common user request by the way. Fortunately, the code to do this is pretty easy. After the form show() call just place the following line and your cursor will be where you want it to be.