单独按钮打开弹出窗口表单提交数据

提问 未结 4 6111
YK-wya 6年前
悬赏:80飞吻
你好,
我在做单独按钮打开弹出窗口,提交数据时报错:TypeError: Cannot read property 'id' of undefined,这个ID定义在什么地方?按钮单独定义弹窗时,怎么提交数据?
<a href="javascript:void(0)" data-toggle="topjui-menubutton" data-options="method:'openDialog',
iconCls:'fa fa-plus',
btnCls:'topjui-btn-green',
dialog:{
href:_ctx + '<?= Url::toRoute(['add-group']) ?>',
width: 650,
height: 300,
buttonsGroup:[
{text:'保存',url:_ctx + '<?= Url::toRoute(['save-group']) ?>',iconCls:'fa fa-plus',handler:'ajaxForm',btnCls:'topjui-btn-brown'}
]
}">
创建群组
</a>


点击提交按钮时报错:
回帖
回帖须知