JQuery提交表单
来源:互联网 发布:软件测评高级工程师 编辑:程序博客网 时间:2024/05/21 22:49
function query(url, id) {
var str = $('#_' + id).val();
var temp = document.createElement("form");
temp.action = url;
temp.target = "_blank";
temp.method = "post";
temp.style.display = "none";
var opt = document.createElement("textarea");
opt.name = "target";
opt.value = str;
temp.appendChild(opt);
document.body.appendChild(temp);
temp.submit();
}
var str = $('#_' + id).val();
var temp = document.createElement("form");
temp.action = url;
temp.target = "_blank";
temp.method = "post";
temp.style.display = "none";
var opt = document.createElement("textarea");
opt.name = "target";
opt.value = str;
temp.appendChild(opt);
document.body.appendChild(temp);
temp.submit();
}
0 0
- jQuery+aJax表单提交
- jQuery异步提交表单
- jQuery防止表单提交
- Jquery阻止表单提交
- jQuery防止表单提交
- jQuery提交表单
- Jquery ajax 表单提交
- Jquery 回车提交表单
- jQuery ajaxForm 表单提交
- jQuery 表单提交
- jquery 提交form表单
- jQuery防止表单提交
- Jquery阻止表单提交
- JQuery 实现表单提交
- jquery ajax 提交表单
- jquery来跨域提交表单
- jquery无法提交表单
- mvc jquery 表单提交
- PLSQL基础(一)
- iOS 粒子效果
- UIAutomator自动化知识点
- 世界记忆大师的记忆力训练方法
- laravel拓展面包屑导航
- JQuery提交表单
- Java静态类
- 工具常见错误
- 对代理的一些理解
- Asp.Net WebForm ListView的使用
- 高精度开平方
- c++程序单实例运行
- 伟东山视频自学笔记——第6课 中断控制器(arm9中断结构)
- python条件判断与循环