thanks for the useful infomation!
On Apr 7, 11:00 pm, mkmanning wrote:
> Caveat:
> Jonathan's method will get you the child table (the one with id rt0
> from the original OP's example), however Eric's will get you all
> tables that are children of a table, within the context of the parent
> cont
Caveat:
Jonathan's method will get you the child table (the one with id rt0
from the original OP's example), however Eric's will get you all
tables that are children of a table, within the context of the parent
container. So in the latter case, if the parent already had a set of
nested tables befo
parent.append("");
var table = $('table table', parent);
Be sure to close your inner tag. IE doesn't like when you try
and generate fragments of code, iirc.
On Apr 7, 12:28 pm, "Jonathan Sharp, Out West Media" wrote:
> Another approach you can take is:
>
> var table = $(' id="rt0">')
>
Another approach you can take is:
var table = $('')
.appendTo( parent )
.find('table');
This creates the HTML and then appends it to the parent. Since you created a
jQuery object with that fragment, calling find will locate the inner table.
Cheer
4 matches
Mail list logo