How to get remaining rows from table after remove()ing a row
<p>I have some code that should remove the parent row of the clicked td and then return the id's of the other rows to an input box.  If i comment out the remove line it all works well, but with the remove call i get an error: </p>

<pre><code>rows is undefined
 for (var i=0; i&lt;rows.length; i++) { 

$("td.remove").live('click', function(event) {
    var element  = this;

    $(this).parent().remove();

    var rows  = $(element).parents('table').attr("rows");

    answer = '';                       
    for (var i=0; i&lt;rows.length; i++) {
        answer += rows[i].id+",";
    }

    $('#' + $(this).parents('table').attr("title")).val(answer);

});
</code></pre>

<p>How can i get the remaining rows after i have deleted the row i clicked on?</p>

<p>Thanks for any help,</p>

<p>will</p>
