```
<ul class="nav-list">
  <li class="nav-item"><a>Item #1</a></li>
  <li class="nav-item active"><a href="#2">Item #2</a></li>
  <li class="nav-item"><a href="#3">Item #3</a></li>
  <li class="nav-item"><a href="#4">Item #4</a></li>
  <li class="nav-item"><a href="#5">Item #5</a></li>
  <li class="nav-item"><a href="#6">Item #6</a></li>
</ul>

```

I had tried to something like below :- 

```
$( 'ul[class="nav-list"] li:nth-child(1)' ).attr( "href", "#1" );

```

It not working because of there are other `ul` tags also.