Jquery-UI Dialog – on the fly without DIV

I hope this helps somebody, you can pass html to dialog directly, like this:

$("<p>Hello World!</p>").dialog(); 

so this way you don’t have to have a pre-builded div, you could use:

$("<div>My div content</div>").dialog();

EDIT: changed end tag to </div> instead of </p>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)