怎么在文本框中输入完毕后,按回车就提交表单?我的代码不行。。。
帮忙看看:
<input name="g_num[]" type="text" class="12_grey2_ST" id="g_num[]" value="<?php echo $select_row["c_num"];?> " size="4" onKeypress="return (/[\d.]/.test(String.fromCharCode(event.keyCode)))" style="ime-mode:Disabled" onMouseOver="this.select()" onfocus="this.select()" onKeyUp="alipayment.submit()">
表单是:
<form action="" method="post" name="alipayment" id="alipayment">