jsp 代码
<script languge="javascript" charset="GBK" src="common/js/jquery-1.8.2.js"></script>
<SCRIPT type="text/javascript">
$(function(){
$("input[name='submit1']").click(function(){
alert('hello');
$("form").submit();
})
})
</SCRIPT>
表单代码
<form name="thisForm" action="doLogin_u.action" method="post" οnsubmit="return myCheck()" id="logform">
<input name="submit1" type="button" class="button1" value="登录">
</form>
检查大半天就是不能提交
最后发现是<form> 内 的 onsubmit() 事件干扰 删掉就可以了