actually it works if i append the div to the body .... $("body").append('<div id="main" class="flora"></div>')
On 20 nov, 11:00, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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