![]() |
Help with closing Jquery dialog
I have a jquery dialog that contains a few fields the close button and some images. When I press the close button or 'X' it works as expected. What I am trying to do is when the dialog is showing and the user clicks on one of the images it runs some javascript and in this javascript I also want to close the dialog.
I am trying: Code:
$('#dialog-content').dialog('close');The id of the div i am running as a dialog is 'dialog-content'. Any suggestions? |
try putting $('#dialog-content').dialog('close'); as your first line in your javascript.
|
That is it. I didn't think that would work as I have nothing called Dialog-content on the screen. Glad it seems to only close the front most dialog box. Thank you for your reply!
|
| All times are GMT +1. The time now is 07:13 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.