how to add text to span jquery
<p>I have this jquery code that I am using to create a dynamic menu</p>

<pre><code>function createList(test){
      alert(test);
        $('#nav')
        .append('&lt;li class="top"&gt;&lt;a href="nogo2" id="products" class="top_link"&gt;&lt;span class="down"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;');
        $('.down').text(test);
    }
</code></pre>

<p>the problem that i have is when i try to add the text to the span</p>

<pre><code>$('.down').text(test);
</code></pre>

<p>the menu changes to whatever value is the last for example if my values are a b c d e
then all my menus e e e e e can any body help me thanks</p>
