how to maintain reference to 'this'
hi
im currently using jquery to iterate over the rows in a table, i am then using dwr to make a remote method call to update each row, is it possible to maintain and use the refernce to the row object inside the dwr function? see code my code below where (at the moment) i am doing $("#"+id) instead of just doing a find on the current row object
$('#myTable tr').each(function() {
row = this;
var id = $(row).find(".idCell").html();
MyRemoteDWRClass.geMoreDetails(id, function(dwrResult) {
//now i want to refer to $(row).find.... to search the current row instead of using $("#"+changedEntityId)
$("#"+id).text(dwrResult);
}
);
});