Need to fetch all span values in a div as an array or string?
<p><strong>I need to fetch all span values in a div into array or string</strong></p>

<pre>
var tag_text_arr=$("#div_id span").each(function(){
        return $(this).text();
    });
</pre>

<p>Actually i need to fetch all span values inside div and want to create a string like this </p>

<p>span1_val|span2_val|span3_val|span4_val</p>

<p>If this is possible explain me...</p>
