lb_hard 2020-03-06 11:09 采纳率: 0%
浏览 520

$.confirm消息弹出层,content内容是一个form表单,请问下在formSubmit中的action中该如何提交content中form表单中的内容,以post提交?

 $.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: '取消'
                },
            },
  • 写回答

2条回答 默认 最新

  • 关注
    评论

报告相同问题?