EE 29085085
by ChrisStanyon
HTML
<div class="video">
<button class="like">Like [<span>0</span>]</button>
</div>
<div class="video">
<button class="like">Like [<span>0</span>]</button>
</div>
CSS
.video { width: 100px; height: 50px; border: 1px solid green; margin: 10px; }
JavaScript
$(document).ready(function() {
$('.like').click(function() {
counter = $(this).children('span');
counter.text(parseInt(counter.text()) + 1);
});
});