I have been stuck on this for a while. I have a layout page that loads jquery version 2.2.3. And i have some div's (info-boxes sort) in which I load a partial view which has a jqgrid. Jqgrid needs jquery library, so i have jquery library in my partial view as well because a partial view has no layout, so i need to load all the scripts. But the issue is that in the web-page 2 jquery libraries are loaded, one from the layout and one from the partial view, this leads to conflicting behaviour. The sidebar menu has accordion like menu, where on clicking on the heading, a sub-menu opens. This doesn't work correctly because of two jquery libraries. In other web-pages where there are no partial views, the sidebar menu works just fine. I'm hoping if i could find a work around for this problem.
Please let me know if there are any questions, sometimes articulation might be a problem for me. Thanks for any inputs.
Not sure why it is downvoted. If you want to downvote it, you might as well give me some input before discarding it.
Including a code snippet -
layout page:
<head>
<script src="~/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="~/Scripts/bootstrap.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
</head>
Partial view: Which i load in a div that's in a view.
not posting the view, just putting the code snippet of partial view.
<script src="~/scripts/jquery-2.2.4.js"></script>
<script src="~/Scripts/free-jqGrid/i18n/grid.locale-en.js"></script>
<script src="~/Scripts/free-jqGrid/jquery.jqgrid.min.js"></script>
<link href="~/Content/themes/base/jquery.ui.theme.css" rel="stylesheet" />
@*<link href="~/Content/jquery.custom/jquery-ui-1.12.1.custom-jquery-ui.css" rel="stylesheet" />*@
<link href="~/Content/ui.jqgrid.min.css" rel="stylesheet" />
<script src="~/Scripts/jqgridinternalapproved.js"></script>
For me to load jqgridinternalapproved.js i need the jquery library. But this will lead to 2 jquery libraries! Not sure what to do to fix it.