Guys i have an issue with jQuery Fancybox only in one particular page. When pressed ESC, the popup doesn't close. It happens only on one page. Rest of the pages where it has been used, works fine. It has been used like this everywhere
<a href="#newpopupcontainer" id="modalpopup" class="modalpopup">Link Name</a>
<div style="display:none;">
<div id="newpopupcontainer" class="newpopupcontainer">
Content
</div>
</div>
<script>
$(document).ready(function () {
$("a.modalpopup").fancybox({
'titlePosition': 'inside',
'transitionIn': 'none',
'transitionOut': 'none'
});
});
</script>
<script type="text/javascript" src="~/Scripts/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="~/Content/css/jquery.fancybox-1.3.4.css" media="screen" />
Coming to the jQuery version, 1.11.0 is being used. This happens only in one particular page. In all the other pages, popup closes when pressed ESC. Any idea what could be the possible cause?