Yes, it can be done. I'm not sure if you're now trying to select rows
or cells or both, though.
Here is a way you can select rows that have descendant TDs but don't
have descendant TABLEs:
$('tr').filter(function() {
return $('td', this).length && !$('table', this).length;
});
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 7, 2009, at 6:37 AM, [email protected] wrote:
Very good help..can i join two condition?
$('td:not(:has(table))') and $('tr:has(td)') ...
On Jan 7, 10:28 am, Karl Swedberg <[email protected]> wrote:
On Jan 6, 2009, at 8:53 PM, Vicky am wrote:
Hello Karl, Very good it works. Also how isay if td does not have
table. one of my td has <table> and it should not higlite that.
thanks.
Hi Vicky,
How about this?
$('td:not(:has(table))')