可以使用focus()函数来实现这个效果。
比如要定位的文本框为<input id='input' />,那么可以在页面加载完成之后,加上如下代码: $('#input').focus();
这样光标就停在文本框内了