One followup.
tr[th] would only find something like this:

<tr th="foo">

The stuff in the brackets are attributes, not child elements.

Glen

On Dec 7, 2007 7:48 AM, Glen Lipka <[EMAIL PROTECTED]> wrote:

> I whipped up a demo for you.
> http://www.commadot.com/jquery/selectorHas.php
>
> Where I figured it out:
> http://docs.jquery.com/Selectors/has#selector
> Desc: Matches elements which contain at least one element that matches the
> specified selector.
>
> Selector page.  Is this the one you looked at?
> http://docs.jquery.com/Selectors/
>
> Hope this helps,
>
> Glen
>
>
> On Dec 7, 2007 5:54 AM, Kirov < [EMAIL PROTECTED]> wrote:
>
> >
> > Hello Dear Reader,
> >
> > I am stuck with the following problem. I've read the whole
> > documentation of jQuery about traversing and selecting DOM nodes and
> > found that i can select all nodes that contain a certain type of node
> > - the example was $('p[a]'); all paragraphs that contain a link
> > (anchor). But for my surprise i was unable to select a table row which
> > contains a table header like this $('tr[th]').
> > I have the following data structure
> > <table border="1" class="rates">
> > <tr><th>Description</th></tr>
> > <tr><td>xxx</td></tr>
> > <tr><td>xxx</td></tr>
> > <tr><td>xxx</td></tr>
> > <tr><td>xxx</td></tr>
> > <tr><th>Description</th></tr>
> > <tr><td>xxx</td></tr>
> > <tr><td>xxx</td></tr>
> > <tr><td>xxx</td></tr>
> > <tr><td>xxx</td></tr>
> >
> > and i want to .remove() all rows that contain <th> but the proposed
> > selector tr[th] isn't useful
> > please help
> > Thank you in advance,
> > Kiril Kirov
> >
> >
>

Reply via email to