limodou schrieb:
> On 9/19/06, Rey Bango <[EMAIL PROTECTED]> wrote:
>> 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.
>>
> I don't know what your $("#cartTable") is. Because you are using
> append, so if the #cartTable is <table></table> so the new row will
> append to <table><tr></tr></table>. but your table maybe :
>
> <table><thead><...></thead><tbody><...></tbody></table>
>
> If that's is, you should append the new row to tbody, but not table
> element, just use:
>
> $("#cartTable tbody").append(msg)
>
> And try again.
>
>
That maybe true. The tbody element is implicit, even if you don't have
it in the html source, it is part of the DOM tree. In IE you must use
the tbody element to append rows to...
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/