comma separating the texts of link buttons
<p>i am storing the names of a series of link buttons having common class in an array and printing the value of array in a span but as all linkbuttons have common classes so they are getting stored as a single entry in the array and while printing the value it is not getting comma separated </p>

<p>the markup that is the aspx part is some what like this</p>

<pre><code>&lt;div class="rightSortControl"&gt;
            &lt;asp:Label ID="lblFilterLabel" runat="server" 
                CssClass="sortLabel" Text="View:"&gt;
            &lt;/asp:Label&gt;
            &lt;asp:LinkButton ID="lbtnToBePublished" runat="server"
                Text="To Be Published" CssClass="filterButton" Visible="false" 
                OnCommand="doSomething"/&gt;
            &lt;asp:LinkButton ID="lbtnBookmarkedByMe" runat="server"
                Text="Bookmarked" CssClass="filterButton" Visible="false" 
                OnCommand="doSomething"/&gt;
            &lt;asp:LinkButton ID="lbtnAuthoredByMeFilter" runat="server" 
                Text="Authored by Me" CssClass="filterButton" 
                OnCommand="doSomething"/&gt;
            &lt;asp:LinkButton ID="lbtnTakenByMe" runat="server" 
                Text="Taken by Me" CssClass="filterButton" Visible="false" 
                OnCommand="doSomething"/&gt;
            &lt;asp:LinkButton ID="lbtnTakingInProgress" runat="server"
                Text="Taking" CssClass="filterButton" Visible="false" 
                OnCommand="doSomething"/&gt;
        &lt;/div&gt;
</code></pre>

<p>here the class mentioned is 'filterbutton' which i am changing dynamically whenever the user click on those linkbuttons to 'selectedButton'.</p>

<pre><code>$('.rightSortControl').each(function()
{
    if ($(this).find('.selectedButton').length &gt; 0)
    {
        arrAppliedFilter.push($.trim($(this).find('.selectedButton').text()));
    }
});

alert(arrAppliedFilter); //not comma separating the names what to do
</code></pre>

<p>what i have to do to fix this </p>
