I'm facing an issue with my MVC application i have some jquery function written on my Layout page and i call these function from different views, but on a specific VIEW when i open this view by clicking from menu it will work fine but when I open the view in new tab from menu by right click on it so jquery isn't loaded. Its happening only in 1 View of my application i have several views and all are working fine. any leads why this happen ?
In my Layout page Function activateNav is written and its working properly when view is open from menu by just single click, but when I'm trying to open it in new tab by right clicking the layout page Function (activateNav) isn't accessible however same scenario is working from different views Thanks in advance. script at my view :
<script type="text/javascript" async>
$(document).ready(function () {
$(window).on('load', function () {*/
jQuery('.actMenu').removeClass("actSubMenu");
$("#subIn").parent().addClass("actSubMenu");
activateNav('#processT', '#subIn');
});
})
</script>