[jQuery] dialog on the fly

[jQuery] dialog on the fly


Hi,
In my ready function I create a div on the fly and try to create a
dialog box out of it :
$(document).append('<div id="main" class="flora"></div>');
$("#main").dialog();
But nothing happens. Is it at all possible to do this or should the
div exists when the page is created ?
Thanks