Adding unique id's to top menu items

If someone intrested, i’ve find way to do something like that:

<li id="1" class="first-level cm-active "><br />
<li id="2" class="first-level"><br />
<li id="3" class=" has-subitems "><br />
<li id="4" class="first-level "><br />
<li id="5" class="first-level "><br />
<li id="6" class=" has-subitems "><br />
<li id="7" class="first-level "><br />
<li id="8" class="first-level ">
```<br />
in top menu<br />
Here is my way to do this:<br />
Find and replace this part of code<br />
```php
<li class="first-level {if $m.selected == true}cm-active{/if}">
```<br />
to this <br />
```php
<li id="{$m.position}" class="{if $m.subitems == false}first-level{/if} {if $m.subitems == true}has-subitems{/if} {if $m.selected == true}cm-active{/if} ">

Why would you want an integer for an html id attribute? Just curious what you're trying to accomplish.

I want to create something like that http://livedemo00.template-help.com/magento_34401/ if you have better solution, i've been glad to hear it

Well, I'd strongly suggest that you use more than just an integer… Maybe ql_1, ql_2, etc.

[quote name='tbirnseth' timestamp='1310931622' post='117501']

Well, I'd strongly suggest that you use more than just an integer… Maybe ql_1, ql_2, etc.

[/quote]

IN this case I strongly agree with you