title: css selectors get parent based on child
body: <p>How do I do something like "Select all elements, whose child match a certain selector"?</p>
  
  <p>For example. There are some elements <code>&lt;div&gt;</code>, each of these elements has a <code>&lt;a&gt;</code> child, some of these are <code>&lt;a class="typ1"&gt;</code>, and some of these are <code>&lt;a class="typ2"&gt;</code>. I want to select all <code>&lt;div&gt;</code> elements, that have an <code>&lt;a&gt;</code> child with a <code>typ1</code> class.</p>
  
  <p>I know that if I want to <code>&lt;a&gt;</code> elements I can do something like <code>a.typ1', but how do I get the</code>` parent?</p>