# Deselecting Menu Item

**URL:** <https://forum.kirupa.com/t/deselecting-menu-item/247309>\
**Category:** web dev\
**Created:** [December 21, 2007, 12:58am UTC](https://forum.kirupa.com/t/deselecting-menu-item/247309 "2007-12-21T00:58:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pherank](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pherank](https://forum.kirupa.com/u/Pherank)\
**Post date:** [December 21, 2007, 12:58am UTC](https://forum.kirupa.com/t/deselecting-menu-item/247309/1 "2007-12-21T00:58:29Z")

</div>

My last issue for the day: I have a page in which a menu link has been highlighted and a list of PDFs is displayed below the menu that correspond to that highlighted link. I need to have that highlight color changed to #000000 (the default color for links) when a user selects any other menu item (onClick). What’s the best way to approach this with JS and CSS?
