title: If li contains text, apply change to specific div in the same li, not all
body: <p>I have a list of items, each with a button and a price.  I am able to find the button that says "choose options", and then apply a change to another div, however, it changes that div for all <code>&lt;li&gt;</code>s, and not just the one where the button text occurs.  How do I contain the change to only the relevant <code>&lt;li&gt;</code>?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>if ($('ul li:contains("Choose Options")')) {
    $(".p-price").prepend("STARTING AT: ");
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;ul&gt;
    &lt;li&gt;
      &lt;em class="p-price"&gt;$1.95&lt;/em&gt;
      &lt;div class="ProductActionAdd"&gt;
        &lt;a href="" class="btn"&gt;Add To Cart&lt;/a&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;em class="p-price"&gt;$4.95&lt;/em&gt;
      &lt;div class="ProductActionAdd"&gt;
        &lt;a href="" class="btn"&gt;Choose Options&lt;/a&gt;
      &lt;/div&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;em class="p-price"&gt;$5.95&lt;/em&gt;
      &lt;div class="ProductActionAdd"&gt;
        &lt;a href="" class="btn"&gt;Add To Cart&lt;/a&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;script&gt;
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The Script above does find the "choose options" text.  But then it adds "Starting At: " to all <code>.p-price</code> instances.  How do I have it only change the <code>.p-price</code> in the same <code>&lt;li&gt;</code>?  So that the <code>&lt;li&gt;</code>s that have "add to cart" button, don't get the text insert before the price?</p>
  
  <p>I've read about <code>.each()</code>, <code>return false</code>, and looping, but not sure If I'm barking up the correct tree, as I've tried various code iterations that fail horribly, but when it comes to this specific if contains, change another div, I cannot find anything that comes close.</p>