js焦点小问题
想在一个textbox上敲回车,焦点调到另一个textbox上,该怎么做
初学js,我是这样写的,但不行
<script language= 'javascript '>
function focusevent()
{
if(event.keyCode==13)
{
document.getElementById( 'TbDsxsdj ').focus();
}
}
<script>
<asp:TextBox ID= "TbXsdj " runat= "server " onkeydown= "focusevent() "/>
<asp:TextBox ID= "TbDsxsdj " runat= "server " />
------解决方案-------------------- </script>