Title: Responsive toggleClass active Menu Nav — toggle not working
Last modified: August 21, 2016

---

# Responsive toggleClass active Menu Nav — toggle not working

 *  [angeladesign](https://wordpress.org/support/users/angeladesign/)
 * (@angeladesign)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/responsive-toggleclass-active-menu-nav-toggle-not-working/)
 * This jquery script works great on my none wordpress site: angelaschmidtdesign.
   com but fails to toggle the active in my wordpress site: forms.angelaschmidtdesign.
   com
 * Thoughts on what is going on? Thanks!
 *     ```
       <script>
       jQuery( document ).ready( function( $ ) {
   
       	 $('nav#menu > ul > li').addClass('has-submenu');
   
       		$('body').addClass('js');
       		  var $menu = $('#menu'),
       		  	  $menulink = $('.menu-link'),
       		  	  $menuTrigger = $('.has-submenu > a');
   
       		$menulink.click(function(e) {
       			e.preventDefault();
       			$menulink.toggleClass('active');
       			$menu.toggleClass('active');
       		});
   
       		$menuTrigger.click(function(e) {
       			e.preventDefault();
       			var $this = $(this);
       			$this.toggleClass('active').next('ul').toggleClass('active');
       		});
   
       });
       </script>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Altaf Hussain Patel](https://wordpress.org/support/users/altafhpatel/)
 * (@altafhpatel)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/responsive-toggleclass-active-menu-nav-toggle-not-working/#post-4768509)
 * toggle is working when i check it using responsive…
 *  Thread Starter [angeladesign](https://wordpress.org/support/users/angeladesign/)
 * (@angeladesign)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/responsive-toggleclass-active-menu-nav-toggle-not-working/#post-4768519)
 * This is what I get in all of my testing (cache is cleared too): [http://angelaschmidtdesign.com/images/menu.jpg](http://angelaschmidtdesign.com/images/menu.jpg)
 * Logo Design and Web Design should not appear until services is clicked/tapped.
 * Do you get the same thing? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Responsive toggleClass active Menu Nav — toggle not working’ is closed
to new replies.

## Tags

 * [active](https://wordpress.org/support/topic-tag/active/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [nav](https://wordpress.org/support/topic-tag/nav/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [angeladesign](https://wordpress.org/support/users/angeladesign/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/responsive-toggleclass-active-menu-nav-toggle-not-working/#post-4768519)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
