开发者

Jquery UI - display same dialog twice on one page

I'm needing to display the same dialog twice on one page, at the same time, in 开发者_如何学JAVAdifferent places.

How would I go about this?

thanks!


Try using .clone() on the original element you used to create the dialog. Then use .dialog() on the element and it's clone.

var jElem = $('#someelem');
var jClone = jElem.clone();
$('body').append(jClone);
jElem .dialog({...});
jClone.dialog({...});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜