How to give ID to the li that contain selected text?
<p>I have this ol list</p>

<pre><code>&lt;ol&gt;&lt;li class="first"&gt;&lt;a href="/ivory/node/183"&gt;Sour Candy Spray 8.5ml (3 flavors)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/181"&gt;Chap Ice Mini Stick 3g (Cherry)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/180"&gt;Chap Ice Mini Stick 3g (Kiwi)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/179"&gt;Chap Ice Mini Stick 3g (Orange)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="active" href="/ivory/node/166"&gt;Chap Ice Beeswax&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/165"&gt;Chap Ice Cherry Stick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/170"&gt;Chap Ice Crazy Flavors 4.2g (Blueraspberry)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/169"&gt;Chap Ice Crazy Flavors 4.2g (Watermelon)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/168"&gt;Chap Ice Crazy Flavors Verry Berry 4.2g&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/167"&gt;Chap Ice Moisture 4.2g Stick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/ivory/node/164"&gt;Chap Ice Original 4.2g Stick&lt;/a&gt;&lt;/li&gt;
&lt;li class="last"&gt;&lt;a href="/ivory/node/163"&gt;ChapIce 10G Petrolium Jelly Squeeze Tube&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
</code></pre>

<p>How to find the li that contain "Chap Ice Cherry Stick" and give it a unique ID?</p>
