Perfect! Thanks, just the info I needed.

Dan

On 7/3/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
>
>
> Dan,
>
> >I tried $('table#my_id/tr') but that doesn't find anything.
>
> Try:
>
> $('table#my_id tr')
>
> - or -
>
> $('table#my_id/tbody/tr')
>
> >Then, I tried $('table#my_id').children().  That returns this
> >mysterious <tbody> element.  This element contains, for its own
> >children, the children of the original table.  There is not tbody
> >element to be found in the html of my webpage.
> >
> >Now, as a workaround, I can just call .children() twice.  But, does
> >anyone understand what's going on?  What is this tbody element?
>
> The <tbody /> element should be explicitly declared in your HTML, but a
> lot
> of developer exclude it. When it's not explicitly declared, the browsers
> will automatically insert the tbody node into the DOM. That's why it's
> showing up.
>
> You can read more about <tbody /> here:
> http://www.w3schools.com/tags/tag_tbody.asp
>
> -Dan
>
>


-- 
Am I who I am, or who I was?

Reply via email to