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-widget-overlay',function()
{
$('#myRateSettingsPopup').dialog('close');
});
Somehow its returning an error:
$(...).on is not a function
What is wrong with my code ?
I am using jquery-1.6.1.min.js , but I cannot update it to the latest version. I am bound.
Is there any other way to do this ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…