我正在使用 jquery mobile 并使用 simpledialog2 来创建对话框。
我的代码
<li><a href="#" data-rel="dialog" onclick="return openpopup();" style="font-weight:normal;">Register</a></li>
function openpopup() {
$('#mobile-login-panel').simpledialog2({
autoOpen: false,
resizable: true,
height: 'auto',
headerText: 'Sign in',
headerClose: true,
width:'auto',
headerClose: true,
blankContent:"SomeHtml"
});
$("div.ui-simpledialog-container ").appendTo($("form#frmdiaLogin"));
return false;
}
现在此对话框已正确打开。但是在关闭时会抛出错误
$.mobile.sdCurrentDialog.sdIntContent.find('select').each(function() {
有什么解决办法吗?