Hi Patrick,

Thanks for the feedback. I was missing a column as you mentioned but 
adding that in didn't resolve. Same effect just with an additional 
column. :o)

I did manage, however, to add this code which actually works:

$("#cartTable").append( '<tr valign="top" id="cartRow_' + thisID 
+'"></tr>' );                                   
$( "#cartRow_" + thisID ).html( msg );

I changed the result of my ajax call to just be the table cells instead 
of the row and cells.

I then appended row and then inserted the table cells returned from my 
response. I'm still not clear, though, why I could just add in the whole 
line.

Rey...

Patrick Hall wrote:
> Hi Rey,
> 
> Just a guess, but could it be relevant that you have a mismatch in the
> number of table data elements?
> 
> I see 4 <td>s in the first snippet, and 5 in the second.
> 
> 
>><tr id='cartRow_897'>
>>        <td><input type='text' size='3' name='qty_897'></td>
>>        <td>2 Pints (16-oz) - Coconut Cream Concentrate - BUY 1 GET 1 
>> FREE!</td>
>>        <td><input type='text' size='7' name='price_897'></td>
>>        <td><img src='images/idelete.gif' width='16' height='16' alt='Remove
>>item from Cart' border='0' id='removeRow_897'></td>
>></tr>
> 
> 
>>$("#cartTable").append(
>>'<tr><td>1</td><td>VCNO16</td><td>Test</td><td>$10.00</td><td>Del</td></tr>'
>>);
> 
> 
> regards,
> 
> -- p@
> ᗷɭoℊẚᗰսɳᑯѲ⁈⁈⁈
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to