title: how to add text to span jQuery
body: <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>