Through process of elimination, I determined that once I added the Mostslider [http://www.jqueryscript.net/slider/Responsive-jQuery-Any-Html-Content-Slider-Mostslider.html] to my html ...
<!-- ====== SLIDER ======= -->
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="js/modernizr-2.6.2.min.js"></script>
<script src="js/mostslider.js" type="text/javascript"></script>
<script>
// Code from SLIDER
$(document).ready(function(){
var slider = $("#slider").mostSlider({
aniMethod: 'auto',
});
});
</script>
<!-- ====== // SLIDER ======= -->
it caused my MegaMenu to stop working ...
<!-- ====== MEGA MENU ======= -->
<script type="text/javascript" src="js/megamenu.js"></script>
<script src="js/menu_jquery.js"></script>
<script type="text/javascript">
// Code from MEGA MENU
$(document).ready(function(){
$(".megamenu").megamenu();
});
</script>
<!-- ===== // MEGA MENU ==== -->
I tried to implement the various $.noConflict(); techniques [http://api.jquery.com/jquery.noconflict/], to no avail. I have tried every possible combination and because I am not very knowledgeable in JQuery and I am stuck. Ideally, I would like to use just one .js file, is there anyway I can just combine them? or would the file be too large to load quickly?
Any suggestions on how I can get these 2 scripts to cooperate, would be appreciated. I can post up the code if needed. The website is not live yet, I am hand coding locally from my PC. Thanks in advance.