JS doesn't seem to be applying
-
I have the following code in a codeblock
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> jQuery(document).ready(function($) { var navigation; navigation = $('#primary-navigation'); navigation.find('a').click(function() { navigation.removeClass('toggled-on'); }); }); // highlight the current menu item jQuery('ul.menu li').each(function() { jQuery(this).removeClass('current-menu-item'); jQuery(this).removeClass('current_page_item'); }); jQuery(thiss).parents('li').addClass('current_page_item'); jQuery(thiss).parents('li').addClass('current-menu-item'); </script>
I’ve applied this to the entire website but it doesn’t seem to be firing. Am I doing something wrong I’ve also tried without the <script>’s
https://www.ads-software.com/plugins/css-javascript-toolbox/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘JS doesn't seem to be applying’ is closed to new replies.