I'm trying to build a website but I keep getting the same problem.

Once the page loads, I want to add a class to the menu item (active) so it looks selected. This is the code I use (it's located just before the closing body tag).

```
$(document).ready(function(){
    $('#navList li a#navHome').addClass('active');
});

```

The HTML is like this:

```
<ul id="navList">
    <li><a href="index.php" title="Home" id="navHome">home</a></li>
</ul>

```

However, when I inspect the element, no class gets added. I really can't find out what I'm doing wrong?

The jQuery file is linked correctly because other jQuery code works.