I want to add number in existing number like stopwatch, My function is adding number perfectly but I want to add animation like stopwatch, I tried but I did not get any clue to get it done. Here's a working demo
$('a').click(function() {
    var val = parseInt($(this).text());
    var currentVal = parseInt($('#price').text())
    var cal = parseInt(val-currentVal)
    var club = parseInt($('#price').text()) + cal
    var bb = $('#price').text(club)
})
})
HTML
<a href="#">10000</a>
<a href="#">12000</a>
<a href="#">15000</a>
<div id="price">10000</div>
 
     
     
     
    