Is it possible in jQuery to daisy-chain selectors like so?
var sData = $('#myTableRow TD:nth-child(3):nth-child(2)').html();
Perhaps you mean:
$('#myTableRow TD:nth-child(3) :nth-child(2)')
Which would be the 2nd child of the 3rd <TD>?
Yes, but that one in particular makes no sense, since the same <td>
cannot be both the 3rd and the 2nd child of its parent. You can however combine multiple "pseudo-class" qualifiers that do make sense when applied together, like ":text:hidden" for example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With