Ah, yes, sorry, the @ selectors are because I am using .net, which alters rendered control ID values. Therefore I need to search for the end of the ID. >From what i read and as you noted, the selector $( "[EMAIL PROTECTED]" + GPRowID + "]", "[EMAIL PROTECTED]" ), would use "[EMAIL PROTECTED] $=gvBillingHistory]" as its context to search for the first half of the selector "[EMAIL PROTECTED]" + GPRowID + "]". This was supposed to improve the efficiency of the selector, however if this is not the case, I would gladly switch to using a different selector as long as I can still search for the end of a string. Any suggestions?
As you pointed out, the ID vs id is a mistake, but the *end with* is correct (due to .Net rendering), also I understand what you said about being able to move the selector out of the loop. I assume instead of having the loop append each new row directly into the DOM, I could build a local string, then once the loop finishes, append the string where I need it. I suspect this would improve the performance. Here is a snippet of my gvBillingHistory table html: <table class="gridview" cellspacing="0" rules="all" border="1" id="ctl00_MainContent_gvBillingHistory" style="border- collapse:collapse;"> <tr class="gvheader"> <th scope="col"> </th><th scope="col">Date</th><th scope="col">Doc #</th><th scope="col">Subtotal</th><th scope="col">Tax</th><th scope="col">Total</th><th scope="col">Payment</ th><th scope="col">GP Status</th> </tr> <tr id="ctl00_MainContent_gvBillingHistory_GPRow_0"> <td onclick="GetGPDocumentLineItems('PYM-522873-1',0)" style="width: 16px;height:16px;text-align:center;">+</td><td> 09/30/2008 </td><td> PYM-522873-1 </td><td> $0.00 </td><td> $0.00 </td><td> - </td><td> $8,680.00 </td><td> Posted </td> </tr> <tr id="ctl00_MainContent_gvBillingHistory_GPRow_1" class="dgalt"> <td onclick="GetGPDocumentLineItems('INV-522873-3',1)" style="width: 16px;height:16px;text-align:center;">+</td><td> 09/30/2008 </td><td> INV-522873-3 </td><td> $1,652.00 </td><td> $84.00 </td><td> $1,736.00 </td><td> - </td><td> Posted </td> </tr> </table>