I have a number of <table>s. I want to find all the columns in all the
tables that have a heading <th> that matches a given string.

Now, it's easy to find the heading with something like:
$('th:contains(' + $(this).text() + ')')

But how do I index from that to get the <col> to be able to style the
column? And remember, I want to do this for all <table>s.

In XPath, I'd use position() as part of a predicate to index between
two nodesets. I'm unable to find something similar in JQuery selectors
as all the index() functions operation on a single element, not on a
nodeset.


Thanks,
Richard

Reply via email to