views:

174

answers:

2

Hi All,

I have a query regarding jquery that i want to create a dialog open and then fill some values in it. As i have tried to create a dialog using jquery it uses old values because that div already exists on that page. So i want to create an object of the dialog using jquery and then fill fields in it. I am using jsmarty and jquery together. Thanks

+2  A: 

You can just do something like this...

var jDialogContainer = $(document.createElement("div"));
// add anything to jDialogContainer you want
jDialogContainer.html("hello");
jDialogContainer.dialog({/*options go here*/});
jayrdub
A: 

This is working!! But if a want to append something in the html before opening the dialog. How can i do it??