On Dec 20, 10:31 pm, chinnak chinnakarup...@gmail.com wrote:
Thanks a lot ricardo..
$(':contains(History)','tr').css(background-color,red);
(WORKS)
One thing I understood was
:contains uses the context to search in it children.not in the same
element.becoz when I use 'td' as the
Also I am not sure what is being passed in the filter .I assume it to
be the TD element right now can somebody correct me or tell me
what is happening.I want the 'History' cells to be red
THnks
On Dec 20, 1:43 pm, chinnakarup...@gmail.com
chinnakarup...@gmail.com wrote:
Hi,
I am trying
Or rather the question should be
can the :contains selector have a context for its search..and if I
make the 'this' to be it will it work.
On Dec 20, 1:43 pm, chinnakarup...@gmail.com
chinnakarup...@gmail.com wrote:
Hi,
I am trying to match the content in 'td' and think the problem
$('tr:contains(Comedy)') and $(':contains(Comedy)','tr') are not the
same.
When using tr as a context, you're searching it's children (the
tds). So if you pass td as a context, the search will happen on it's
children (which are none in your page). You need
$('td:contains(Comedy)') or to
Thanks a lot ricardo..
$(':contains(History)','tr').css(background-color,red);
(WORKS)
One thing I understood was
:contains uses the context to search in it children.not in the same
element.becoz when I use 'td' as the context td has the text 'History' in it
that I am looking for. Is
5 matches
Mail list logo