Robert Granlund
asked on
jQuery Conflict.
I have the following script on a page that toggles a menu open and closed:
<script>
jQuery(document).ready(function() {
jQuery('.laser-nav-display').click(function() {
jQuery('.nav-lasers').slideToggle("slow", function() {
});
});
jQuery('.app-nav-display').click(function() {
jQuery('.nav-applications').slideToggle("slow", function() {
});
});
});
</script>
It works fin. The problem is, I have the nivo-slider plugin working in another div on the page. When the page loads it toggels the nivo slider div closed. How do I stop it from doing that?
Can you post a link to the page? nivo slider has no default element name set to app-nav-display or laser-nav-display...
ASKER
cohr-dev-ee01.azurewebsite s.net/
With Firebug I see the following:
1 - you have an error at line 23 of unspecified page (suppose index.html):
TypeError: $(...).mCustomScrollbar is not a function
$(window).load(function(){ $(".image- thumb-cont ").mCustom Scrollbar( );});
2 - Exploring the markup after having stopped the javascript execution, I see that Firebug says it can't load any image which should appear in nivoslider
Don't know if these things can help you to find the bug, but I hope :-)
1 - you have an error at line 23 of unspecified page (suppose index.html):
TypeError: $(...).mCustomScrollbar is not a function
$(window).load(function(){
2 - Exploring the markup after having stopped the javascript execution, I see that Firebug says it can't load any image which should appear in nivoslider
Don't know if these things can help you to find the bug, but I hope :-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.