Next thing I want to see is the HTML that the code you generate is being inserted into. I'm having trouble following this selector:
$( "[EMAIL PROTECTED]" + GPRowID + "]", "[EMAIL PROTECTED]" ) My guess is that the @ characters are left over from some old jQuery syntax? And so it would find an element in the current document with an ID attribute that *ends with* (because of the $ suffix) the text "gvBillingHistory", and then look inside that element for an element whose ID attribute *ends with* GPRow_xxxxx where xxxxx is the value of GPRowID. Is that right? The elements have ID attributes (not id in lower case)? And you need to match on what the ID attributes end with? Whatever it does, this would be an extremely slow selector. There's no reason for it to be inside the loop, since GPRowID does not vary inside the loop. So you could put above the $.each: var $target = $(...blahblah...); and use .appendTo($target) in the loop. If those ID attributes are really id, and if the bit about attributes that *end with* the indicated text is just a mistake, then you could just put this above the loop: var $target = $( '#GPRow_' + GPRowID ); But now I'm just speculating because I haven't seen your HTML code. -Mike > From: Coryt > Unfortunately I don't have a place to put up a test page. > Here is the html template:...