jQuery: problem with dialog
i'm having 2 dialogs in my web - when setting their property autoOpen:true
they both show.
but when setting autoOpen:false
(and open them manually) - only one dialog opens :(
with 开发者_如何学JAVAthe other one, nothing happens at all (no error in firebug). any idea what it could be?
it can't be the dialog content, as i defined just some simple debug text.
div.dialog({
autoOpen:false,
bgiframe: false,
resizable: true,
width:wi,
minHeight:0,
height:he,
modal: true,
title: div.attr("caption"),
overlay: { backgroundColor: '#ffffff', opacity: 0.8 }
});
div is probably not the right identifier for jQuery.
Change div.dialog(...)
to $("#mydialog").dialog(...)
where the div containing the dialog is:
<div id="mydialog">put dialog content here.</div>
精彩评论