How to add class to the element that contains a certain string in jQuery?
<p>I have this li list:</p>

<pre><code>&lt;ul&gt;
  &lt;li&gt;item 1&lt;/li&gt;
  &lt;li&gt;item 2&lt;/li&gt;
  &lt;li&gt;item 3&lt;/li&gt;
  &lt;li&gt;item 4&lt;/li&gt;
  &lt;li&gt;item 5&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>How can I add a class "item-3" to the li element that contains "item 3" between the <code>&lt;li&gt;</code> and <code>&lt;/li&gt;</code> tags?</p>

<p>Thanks in advance.</p>
