It seems the highest voted one says do this:
$("<div>My div content</div>").dialog();
Way down in the comments of the SO post, zod posts “What about prompt” with a links to
I’m glad one of the StackOverflow police did not remove that comment (I up voted it) because it is exactly what I was looking for (I’d post a note to zod saying thanks, but the SO police would get me for that also so zod, if you come buy my blog here, you have my thanks).
So now, all I need to do when I want to show a nice clean prompt is
$.Prompt('My div content');
That’s it! and I get a very nice modal dialog that looks like the following.
(of course I added a little more text).