[ jQuery/js newby ] This must be the result: ------------------------ When the page loads, all div's with class 'foo' that have an h4 element that contains 'bar' must show up in red (the div, not h4). The div's that are not containing <h4>bar</h4> stay 'default'.
Problem: -------- I can't figure out how to check a condition on element X and apply css on element Y (Y is parent of X). How can this be done? Thanks