jquery

How to made sidenav close and body reset on click of nav link  #angularjs #reactjs

  • Stack Overflow works best with JavaScript enabled
  • Browse other questions tagged jquery navigation or ask your own question .
  • sign up log in tour help
  • What I really need is for the nav to close when a link is clicked and for the body to reset in the middle(Currently you have to click into the body for this event to occur).
  • About us tour help blog chat data legal privacy policy work advertising info mobile contact us feedback

I created a sidenav that opens off canvas to the right. Currently clicking on a link will automatically scroll the page to the target id. What I really need is for the nav to close when a link is clicked and for the body to reset in the middle(Currently you have to click into the body for this event to occur). Here’s my code:

@ng_real_ninja: How to made sidenav close and body reset on click of nav link #angularjs #reactjs

I created a sidenav that opens off canvas to the right. Currently clicking on a link will automatically scroll the page to the target id. What I really need is for the nav to close when a link is clicked and for the body to reset in the middle(Currently you have to click into the body for this event to occur). Here’s my code:

jquery