I need to output different HTML for children of navigation. When i use
{% set entries = craft.entries.section('pages') %}
<ul id="nav">
{% nav entry in entries %}
<li class="whatever">
<a href="{{ entry.url }}">{{ entry.title }}</a>
{% ifchildren %}
<ul>
{% children %}
</ul>
{% endifchildren %}
</li>
{% endnav %}
</ul>
It outputs my children having class="whatever" as well. I don't want that, i need something else for the children.
I saw the post here: Custom or complex nav tag about using LEVEL however i don't quite understand how i would write the code for that. Could anybody help? Thanks!