how to check div is last child from parent div
<p>In <strong>Jquery</strong> or <strong>JavaScript</strong> have a function like <code>.hasNext()</code>. I have the code: </p>

<pre><code>function showArrowClick() {
   var activeContact = $('.contact.white_bg');
   activeContact.removeClass('white_bg');
   activeContact.next().addClass('white_bg');
}
</code></pre>

<p>and parent div is</p>

<pre><code>&lt;div class="list"&gt;
     &lt;div class="contact white_bg all_contacts"&gt;All&lt;/div&gt;
     &lt;div class="contact"&gt;Contact1&lt;/div&gt;
     &lt;div class="contact"&gt;Contact2&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>After click last div need to do <strong>something</strong>. How can I do it?</p>
