Find tag <a> and put a word in an element with jQuery
<p>What I want:</p>

<p>if inside tag <code>&lt;li&gt;</code> there is no tag <code>&lt;a&gt;</code>, then - insert word "Empty" into <code>&lt;div class="tooltip"&gt; &lt;/div&gt;</code>.</p>

<p>How can do i do it with jQuery?</p>

<pre><code>&lt;ol&gt;
    &lt;li&gt;&lt;input name="hotel_id[]" value="14" style="display:none;"&gt;
    &lt;div class="tooltip" style="top: 439px; left: 717px; display: none; "&gt;
    &lt;/div&gt;
    &lt;a href="" class="tool_tip" title="ok"&gt;Hello&lt;/a&gt;&lt;/li&gt;

    &lt;li&gt;&lt;input name="hotel_id[]" value="5" style="display:none;"&gt;
    &lt;div class="tooltip" style="opacity: 0.9; top: 439px; left: 717px; display: none; "&gt;
    &lt;/div&gt;
    &lt;a href="" class="tool_tip" title=""&gt;How&lt;/a&gt;&lt;/li&gt;

    &lt;li&gt;&lt;input name="hotel_id[]" value="4" style="display:none;"&gt;
    &lt;div class="tooltip" style="top: 439px; left: 717px; display: none; opacity: 0.9; "&gt;
    &lt;/div&gt;
    &lt;a href="" class="tool_tip" title=""&gt;Are&lt;/a&gt;&lt;/li&gt;

    &lt;li&gt;&lt;input name="hotel_id[]" value="3" style="display:none;"&gt;
    &lt;div class="tooltip" style="opacity: 0.9; top: 439px; left: 717px; display: none; "&gt;
    &lt;/div&gt;
    &lt;a href="" class="tool_tip" title=""&gt;Help&lt;/a&gt;&lt;/li&gt;

    &lt;li&gt;&lt;input name="hotel_id[]" value="2" style="display:none;"&gt;
    &lt;div class="tooltip" style="top: 439px; left: 717px; display: none; "&gt;
         // I want append here word "Empty" that there is not tag a in li
    &lt;/div&gt;&lt;/li&gt;

    &lt;li&gt;&lt;input name="hotel_id[]" value="1" style="display:none;"&gt;
    &lt;div class="tooltip" style="top: 439px; left: 717px; display: none; "&gt;
         // I want appen here word "Empty" that there is not tag a in li
    &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;
</code></pre>
