Is it possible to create a popup without being based on a div. Example, I have a the following DIV:
<div id="dialog" title="Info">
<p>This is a test</p>
</div>
Instead of calling a dialog like this:
$("#dialog").dialog();
I would like to call like this:
$("This is a test").dialog();
How would it be possible?
Thank you, Regards.
You can call it like this:
$("<div>This is a test</div>").dialog();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With