Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Dennis Eitner
Full Stack JavaScript Techdegree Graduate 25,593 Points in vertical jquery menu
I have weird tags in my vertical accordian menu renderd in the browser. This  's are not in the code and I can not find them. Can anybody help?
<ul id="nav"><li><a href="#" class="active">Rotwein</a>
<ul style="display: block;">
<li><a href="#">Sub-Item 1 a</a></li>
<li><a href="#">Sub-Item 1 b</a></li>
<li><a href="#">Sub-Item 1 c</a></li>
</ul>
</li>
<li><a href="#">Weisswein</a>
<ul style="">
<li><a href="#">Sub-Item 2 a</a></li>
<li><a href="#">Sub-Item 2 b</a></li>
</ul>
</li>
<li><a href="#">Rosewein</a>
<ul style="">
<li><a href="#">Sub-Item 3 a</a></li>
<li><a href="#">Sub-Item 3 b</a></li>
<li><a href="#">Sub-Item 3 c</a></li>
<li><a href="#">Sub-Item 3 d</a></li>
</ul>
</li>
<li><a href="#">Schaumwein</a>
<ul style="">
<li><a href="#">Sub-Item 4 a</a></li>
<li><a href="#">Sub-Item 4 b</a></li>
<li><a href="#">Sub-Item 4 c</a></li>
</ul>
</li>
<li><a href="#">Altro</a></li>
</ul>
```
The Javascript:
```javascript
$(document).ready(function () {
$('#nav > li > a').click(function(){
if ($(this).attr('class') != 'active'){
$('#nav li ul').slideUp();
$(this).next().slideToggle();
$('#nav li a').removeClass('active');
$(this).addClass('active');
}
});
});
$('#nav a.active').each(function(){
$(this).next().show();
});
```
3 Answers

Yorick Toma
742 PointsIt looks like indentation of a certain editor. With what editor did you write this ?
At least here it is without CLICK

Dennis Eitner
Full Stack JavaScript Techdegree Graduate 25,593 PointsI wrote this thing with coda 2

Dennis Eitner
Full Stack JavaScript Techdegree Graduate 25,593 Pointsyou actually were right. Code did some invisibale characters.