I want to remove a colon at the end of my titles, so I use this:
$('.title').html($('.title').html().replace(':', ''))
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="title">
Apples:
</div>
<div class="title">
Oranges:
</div>
It works, it removes the colons, but it also replaces second title Oranges with Apples?