I'm using the following code for a simple JQuery accordion menu which uses JQuery 1.4
The issue is that I'm also using mmenu which requires JQuery 1.7 or higher in order to function and so the two are now conflicting.
Can I therefore update the following code to make it JQuery 1.7 friendly? Are there any other recommendations?
Thanks all for your help - much appreciated...
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script>
$(document).ready(function () {
var checkCookie = $.cookie("nav123-item");
if (checkCookie != "") {
$('#nav123 > li > a:eq('+checkCookie+')').addClass('active').next().show();
}
$('#nav123 > li > a').click(function(){
var nav123Index = $('#nav123 > li > a').index(this);
$.cookie("nav123-item", nav123Index);
$('#nav123 li ul').slideUp();
if ($(this).next().is(":visible")){
$(this).next().slideUp();
} else {
$(this).next().slideToggle();
}
$('#nav123 li a').removeClass('active');
$(this).addClass('active');
});
});
</script>