1
我對Simplemodal有點卡住了。Simplemodal:關閉後銷燬數據
我想在關閉模態窗口後銷燬具有類$('p.confirm')的數據。
這裏就是我有這麼遠,它不工作:
if (document.getElementsByClassName('confirm').length > 0){
$('p.confirm').modal({
overlayClose:true,
onClose:function(dialog){
dialog.data.find('.confirm').remove();
$.modal.close(); // must call this!
},
persist:true
});
}
任何人可以幫助我嗎?謝謝
想關閉後刪除'p.confirm'嗎? – Chris
是的,我想刪除它 –
讓我知道,如果你的搜索http://jsfiddle.net/3RV8C/5/ – Chris