jquery each function on string variable
<p>I have wrote a function in javascript which takes title attributes of <code>&lt;tr&gt;</code> calls ajax then after some operation it retreive some title attributes from them. depending on that title attribute i want to remove those <code>&lt;tr&gt;</code> rows</p>

<pre><code>function currentTicketStatus() {
    var ids = '';
    $('tbody tr[title]').each(function() {
        ids += ((ids == '') ? '' : ',') + $(this).attr('title');
    });
    $.ajax({
        url: 'ajaxExecute.aspx?Fn=CTS',
        type: 'POST',
        context: document.body,
        cache: false,
        data: 'Tickets=' + ids,
        success: function(response) {
            if (response != '') {
                if (response.substr(0, 5) != 'ERROR') {
                    var sTickets = response.split('|');

                    sTickets.each(function() {
                        $(this).parent().parent().remove();
                    });
                }
            }
        }
    });
}
</code></pre>

<p>Example : at the time of ajax call <code>ids="100,101,102,103,104"</code> after ajax call <code>sTickets="101|102"</code> . Now remove those rows with attributes of sTickets</p>

<p>HTML (Not Exactly )</p>

<pre><code>&lt;tbody&gt;
&lt;tr title="100"&gt; some data part &lt;/tr&gt;
&lt;tr title="101"&gt; some data part &lt;/tr&gt;
&lt;tr title="102"&gt; some data part &lt;/tr&gt;
&lt;tr title="103"&gt; some data part &lt;/tr&gt;
&lt;/tbody&gt;
</code></pre>
