# \[CSS/Jquery HELP\] Menu dropdown not rolling up on mobile view!

**URL:** <https://forum.kirupa.com/t/css-jquery-help-menu-dropdown-not-rolling-up-on-mobile-view/637285>\
**Category:** web dev\
**Created:** [October 8, 2017, 11:35pm UTC](https://forum.kirupa.com/t/css-jquery-help-menu-dropdown-not-rolling-up-on-mobile-view/637285 "2017-10-08T23:35:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetiz](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@jetiz](https://forum.kirupa.com/u/jetiz)\
**Post date:** [October 8, 2017, 11:35pm UTC](https://forum.kirupa.com/t/css-jquery-help-menu-dropdown-not-rolling-up-on-mobile-view/637285/1 "2017-10-08T23:35:34Z")

</div>

Hi,

The one-page website menu stopped rolling up on selection in mobile view?  
Once we select the menu option, the open drop-down menu should close and the user should be taken to that section. Not able to figure out the issue. Need css/jquery help!

Refer url: [http://7drives.in/dsq/](http://7drives.in/dsq/)

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [October 10, 2017, 4:45am UTC](https://forum.kirupa.com/t/css-jquery-help-menu-dropdown-not-rolling-up-on-mobile-view/637285/2 "2017-10-10T04:45:01Z")

</div>

I totally see it! Can you post just the code you are using for showing and hiding the menu? The following element is what is responsible for the menu expanding:

```
<nav class="top-bar" data-topbar="" style="position: fixed; top: 0px;"> 
  .
  .
  .
</nav>

```

When the menu is brought up, an **expanded** class value is added. That value never gets removed once you click on an element. You need to remove the **expanded** class value when any item in the menu is clicked. That should solve the problem 🙂

---

<div class="post-metadata">

**Author:** ![jetiz](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@jetiz](https://forum.kirupa.com/u/jetiz)\
**Post date:** [October 11, 2017, 6:02am UTC](https://forum.kirupa.com/t/css-jquery-help-menu-dropdown-not-rolling-up-on-mobile-view/637285/3 "2017-10-11T06:02:14Z")

</div>

Thanks for your reply. Really Appretiate it.  
Could you please tell me How do we remove the expanded menu?
