Building Dynamic Navigation Using JavaScript and jQuery

Ok, I’ll admit, I’m pretty new to JavaScript and jQuery, so as a disclaimer, my coding may not be perfect or concise. With that said, I’m going to explain how to build dynamic navigation highlighting using a little JavaScript and jQuery. The first step is to explain the problem.

Most web sites that follow good usability practices will tell visitors where they are on the site. It’s kind of like that directory map in a shopping mall with the big red “YOU ARE HERE” arrow. On web sites, this is usually accomplished by highlighting or shading the navigation object that the user is currently on.

js-dynamic-nav-highlighting-exampleKeep Reading