$.confirm({
title: '修改',
content: '' +
'<form class="" action="" method="post"
onsubmit="return false;">' +
' <div class="form-group">'+
' <label>邮箱</label>'+
' <div>'+
' <input class="" type="email"
name=""
placeholder="请输入邮箱..">'+
' </div>'+
' </div>'+
' <div>'+
' <label>密码</label>'+
' <div>'+
' <input type="password"
name=""
placeholder="请输入密码..">' +
' </div>'+
' </div>'+
' <button type="submit">提交</button>'+
' </form>',
buttons: {
formSubmit: {
text: '提交',
btnClass: 'btn-blue',
action: function () {
}
},
cancel: {
text: '取消'
},
},
$.confirm消息弹出层,content内容是一个form表单,请问下在formSubmit中的action中该如何提交content中form表单中的内容,以post提交?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-