Show the same dialog more than once?
Okay so I'm a newbie.... I'm starting with the jquery ui page that
demo's dialogs. I added a button just before the end of the body:
<button onclick="ShowDialog()";>Again</button>
The body of the function:
function ShowDialog()
{
$("#dialog").dialog({ autoOpen: true });
alert("done");
}
I commented out the showing of the dialog on document load.
Press the button several times. The jquery dialog will display one
time only. The alert() always works. I would like it to display every
time I press the button. I have tried all kinds of options, but
nothing seems to work.
any ideas?
thanks.