1. 首页
  2. 大数据
  3. Hive
  4. 巧用js提交表单轻松解决一个页面有多个提交按钮

巧用js提交表单轻松解决一个页面有多个提交按钮

上传者: 2020-12-17 08:05:04上传 PDF文件 25.78KB 热度 23次
代码如下: function check(txt){ $j(“form”).submit(function(){ if($txt==”提交”){ this.action=”doAddMessage.action?button=提交”; this.submit(); }else{ this.action=”doAddMessage.action?button=保存”; this.submit(); } }); } <input type=”IMAGE” src=”style/blue/images/
下载地址
用户评论