关于表单提交
onsubmit属性只能在表单(form)的属性列表中出现。
onclick可以在表单的其他元素内出现。
<form action="#" id="form" onlick="checkForm();">==》可以提交表单。
几个注意点:
1、<input type="button" value="提交" onclick="return checkForm();">
如上写法,并不能提交表单。只有type是image和submit才可以提交。
2、<input type="button" value="提交" onclick="submit();">
可以提交表单。submit( )表单方法提交表单数据到服务器。

浙公网安备 33010602011771号