求助~~~~~~~表单填写时用回车代替TAB的实现方式?
问题如题~~~~
------解决方案-------------------- </script>
<script language = "javascript " for = "document " event = "onkeydown ">
if (event.keyCode == 13 && event.srcElement.id == " tbKey " )
{event.keyCode == 13 ; return ;}
if (event.keyCode == 13 && event.srcElement.type != 'button ' && event.srcElement.type != 'submit ' && event.srcElement.type != 'reset ' && event.srcElement.type != 'textarea ' && event.srcElement.type != ' ')
event.keyCode = 9 ;
</Script>
这个代码应该可以实现~