I want to select
<td> elements that contain
only a checkbox. I want to do this with a single selector (not
using chaining or logic outside the selector) so that I can use the
selector with jQuery functions like
The bigger pictures is that I want to listen for a click event
<td>s and pass the click event on to
the checkbox, thus creating a larger clicking area. This is
important, because the
<tr> also has a different
click event that I don't want to activate when users click and miss
I created a jsfiddle with an example scenario: http://jsfiddle.net/ytA3X/
This is what I started with that is not working. In other words,
select any td element that has a checkbox but does not have
anything that is not a checkbox.
:not(:has(...)) works in my jsfiddle example.
:has(:not(...)) works in my jsfiddle example.
:not(:has(:not(...))) always seems to select
Is there a different way that I can select td elements with only
a checkbox, or am I doing something wrong?