how to add text on 5 span that uses same id
<p>How do i add a text to all 5 spans that share the same id.</p>

<p>the html goes:</p>

<pre><code>&lt;div class="body"&gt;
&lt;form&gt;
&lt;span id = "test" &gt;&lt;/span&gt;
&lt;span id = "test" &gt;&lt;/span&gt;
&lt;span id = "test" &gt;&lt;/span&gt;
&lt;span id = "test" &gt;&lt;/span&gt;
&lt;span id = "test" &gt;&lt;/span&gt;
&lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>The js:</p>

<pre><code>function check_aff_payment(elem){

        $(elem).find('#test').each(function(){
            $("#test").text("*");
        });

}
</code></pre>
