0
Simplemodal完美工作,但我不知道如何在提交表单后自动关闭Iframe。 我试图用JS来获取模式选项之外的事件,但 如果关闭提交事件,表单不会提交模态窗口...提交后关闭iframe表单?
我还添加了类simplemodal关闭到输入按钮,但它的工作形式?
有什么建议? 这里是我的代码
//模态窗口
modal.click(function(e){
e.preventDefault();
$.modal('<iframe src="' + this.href + '" height="480" width="525" style="border:0" >',{
containerCss:{
backgroundColor:"#fff"
},
overlayClose:true,
onShow: function (dialog) {
$("input",dialog.data).click(function (e) {
e.preventDefault();
alert('Here'); //Doesnt execute
$.modal.close();
parent.$.modal.close();
alert('Here');
});
}
});