Title: Call the ResponsiveMenu JS
Last modified: August 18, 2017

---

# Call the ResponsiveMenu JS

 *  Resolved [Setsuna.16](https://wordpress.org/support/users/setsuna16/)
 * (@setsuna16)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/call-the-responsivemenu-js/)
 * Hi, is there a function I can use to close the menu manually without clicking
   the close button? Hope you could help me.

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

 *  [Peter Featherstone](https://wordpress.org/support/users/peterfeatherstone-1/)
 * (@peterfeatherstone-1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/call-the-responsivemenu-js/#post-9422688)
 * Hey there,
 * What do you mean by close it manually without clicking the button? That is how
   you do it manually.
 * Do you mean you want to use a different element to trigger the menu? If so, then
   yes you can set this in the Trigger option.
 * Or do you mean do it automatically through code? If so, then you can just mimmick
   a click using jQuery on the button the same way you would with any other element.
 * I hope that helps
 * Peter
 *  Thread Starter [Setsuna.16](https://wordpress.org/support/users/setsuna16/)
 * (@setsuna16)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/call-the-responsivemenu-js/#post-9425742)
 * Hi, thanks for responding. Yes I mean I have two menus. One on the left and to
   the right is the responsive menu plugin. Now I have this code that if the right
   menu is open and I click on the left menu the right menu will close and the left
   will open vice versa. The problem with the code is this, I use this method:
 * $(‘.leftMenu’).click(function(){
    $(‘.leftBox’).toggle(); if($(‘#responsive-menu-
   button’).hasClass(‘is-active’)){ $(‘#responsive-menu-button’).click(); } });
 * this closes the plugin on the right. Now on the other side I have:
 * $(#responsive-menu-button).click(function(){
    if($(‘.leftBox’).is(:visible”)){
   $(‘.leftBox’).toggle(); } });
 * the second method goes back to the first script and then triggers the plugin 
   click function again. I now that the when the plugin closes it removes some classes
   which triggers a css transform. I check the ResponsiveMenu.init() script. There’s
   a function there that triggers to close the plugin nav. How can I use that? The
   only option I think is to remove the classes. Thanks :))
 *  [Peter Featherstone](https://wordpress.org/support/users/peterfeatherstone-1/)
 * (@peterfeatherstone-1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/call-the-responsivemenu-js/#post-9426430)
 * Hey there,
 * I don’t think that is possible and unfortunately it’s a lot more complex than
   just removing some classes.
 * Without seeing your site it’s impossible to say, have you tried adding .leftBox
   to the Trigger option?
 * Peter

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

 The topic ‘Call the ResponsiveMenu JS’ is closed to new replies.

 * ![](https://ps.w.org/responsive-menu/assets/icon-256x256.png?rev=1782326)
 * [Responsive Menu - Create Mobile-Friendly Menu](https://wordpress.org/plugins/responsive-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-menu/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Peter Featherstone](https://wordpress.org/support/users/peterfeatherstone-1/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/call-the-responsivemenu-js/#post-9426430)
 * Status: resolved