English 中文(简体)
create create
原标题:create dialog without id and append in jquery
  • 时间:2009-09-04 06:22:42
  •  标签:

I have created a div using jquery that i want to make a dialog. I want to append another div in that dialog before opening it. How can i do that??

问题回答

页: 1 反对:

$("div#dialog").append("<div></div>");

2. 创造新的支离破碎块,并给它以旧的残 d

 var newDiv =  $(document.createElement( div )); //Note 1

 $("#ID_OF_OLD_DIV").appendTo($(newDiv));
 $(newDiv).dialog();//or what ever you are using

Nte 1: from .





相关问题
热门标签