title: How to remove last BR elements in a div with jQuery
body: <p>I want to remove the last <code>&lt;BR&gt;</code>s in a div with jQuery. I tried this code but it removes the line break tags at the first and the middle too.</p>
  
  <p><strong>HTML Code</strong></p>
  
  <pre><code>&lt;div class="topic"&gt;
   Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.&lt;br/&gt;
   Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes,&lt;br/&gt; 
   nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. 
   Nulla consequat massa quis enim. DonecLorem ipsum dolor sit amet, consectetuer adipiscing elit.&lt;br/&gt;
   &lt;br/&gt;
   &lt;br/&gt;
   &lt;br/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>jQuery Code</strong></p>
  
  <pre><code>$(document).ready(function(){
    $('.topic').find('br').remove();
  });
  </code></pre>