named anchor not working

Hi- I took this through the validator and made the suggested changes, but it broke the look of the page, so I took it back. There are only a few errors.

At the top, the four words:

    HomeStyle Menu
    MK Meals Special Diet Menu
    Health News
Are linked to <section id="sec1">  etc.

For instance, I have: <li role="presentation"><a href="#sec5">Health News</a></li> and <section id="sec5">.

What's wrong? Thanks.

But they aren't linking.
Melody ScottAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
See near line 630...
// Adds active state to secion navigation
$('.nav li').click(function(e) {
  $('.nav li').removeClass('active');

Open in new window

e.preventDefault() tells the browser to ignore the standard actions associated with these DOM elements.  Try removing that line and see if it helps.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Melody ScottAuthor Commented:
That was it, thanks!! I am taking a javascript course this week, I hope to bother you guys less!
Ray PaseurCommented:

"Bother us" any time -- we're glad to help :-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.