title: jquery prepend to parent if child :contains x
body: <p>If the child contains the word "Group" I want to prepend something to its parent. How do I set it up to be conditional?</p>
  
  <pre><code>$("#breadcrumbs ul li:nth-child(4):contains('Group')").css("display","block");
  $("#breadcrumbs").prepend("&lt;p&gt;relevant note about Groups&lt;/p&gt;");
  </code></pre>
  
  <p>for</p>
  
  <pre><code>&lt;nav id="breadcrumbs" role="navigation"&gt;
  &lt;ul&gt;
  &lt;li&gt;Home&lt;/li&gt;
  &lt;li&gt;Section&lt;/li&gt;
  &lt;li&gt;People&lt;/li&gt;
  &lt;li&gt;Group 1&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/FqzGs/" rel="nofollow">fiddle</a></p>