# Keep Active Menu Item Highlighted

> Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

Source: https://tadabase.com/docs/snippets/keep-active-menu-item-highlighted  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add this functionality is through the plugin installation wizard. Learn more about plugins [here](https://tadabase.com/docs).

![Screenshot for “Keep Active Menu Item Highlighted”](https://community.tadabase.io/uploads/default/original/2X/2/2c99bfd7cc5163e8109ee3c142793c6574567a6f.gif)

When working with the Menu Component, you may decide to keep the active menu item highlighted, as shown in the GIF above.

**One Easy Step**

**Add the following Code to the JavaScript tab of your layout or page where your menu is located.**

```
$('.navbar .item').on("click", function() {
    $('.navbar .item').removeClass('active');
    $(this).addClass('active');
});
```

![Screenshot for “Keep Active Menu Item Highlighted”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-16_23-21-14.png)

**Original Community Post:**

[Keep active menu item highlighted/active state - Community Discussions / Tips and Tricks - Tadabase Community](https://community.tadabase.io/t/keep-active-menu-item-highlighted-active-state/1611)
