javascript - Get rows with colspan children? -


How do I get references to all the rows (trs), which contains a cell cell with callspain in the jQuery cell? & lt; Table ID = "Report" & gt; & Lt; TR & gt; & Lt; Th & gt; Household Advertising & lt; / Th & gt; & Lt; Th & gt; Household Advertising & lt; / Th & gt; & Lt; Th & gt; Household Advertising & lt; / Th & gt; & Lt; Th & gt; Household Advertising & lt; / Th & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Household Advertising & lt; / Td> & Lt; Td> Household Advertising & lt; / Td> & Lt; Td> Household Advertising & lt; / Td> & Lt; Td> Household Advertising & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td colspan = "4" & gt; & Lt ;! - Details here - & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> Household Advertising & lt; / Td> & Lt; Td> Household Advertising & lt; / Td> & Lt; Td> Household Advertising & lt; / Td> & Lt; Td> Household Advertising & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td colspan = "4" & gt; & Lt ;! - Details here - & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt;

like this ...

  $ ( '#report td [colspan]'). mother-father ();   

Or this ...

  $ ('# report tr: is (colspan)');   

Although I like the first one.

Comments