开发者

Jquery UI - display same dialog twice on one page

开发者 https://www.devze.com 2023-03-23 20:57 出处:网络
I\'m needing to display the same dialog twice on one page, at the same time, in 开发者_如何学JAVAdifferent places.

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

精彩评论

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