Can anyone tell me best way to close a modal window? I have a modal that calls a program to save the information entered on the screen. I need to close the modal when the information ia saved. This modal sits on top of the demographics screen.
It would depend on what you are using to open the window - fancybox/jquery/qtip2/… Each provides a way to close the dialog gracefully without any memory leaks.
Without looking at the code to see how “.modal” selector object was constructed, it is hard to comment. From syntax it looks like fancybox - in which case correct way would be $.modal.close(true);