[jQuery] Wait for a function response
Hi. I just created a jQuery plugin that shows a modal window and my
intentions is to replace all the alert and confirm dialogs. That's why
I need that my plugin behaves like confirm and alert dialogs. When I
create the dialog with my plugin I bind events to my buttons (Ok,
cancel, etc), do you know how to stop javascript execution and make it
wait until one button is pressed? Is it any way I could do this?
Thanks!