I am using dialog box, which I am closing when a user click anywhere on page expect that dialog box.
Here is my code:
$(\'body\').on(\'click\',\'.ui-
Try live instead of on its a jquery version problem
live
on
$('body').live('click','.ui-widget-overlay',function() { $('#myRateSettingsPopup').dialog('close'); });