// html <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 total-price bold red"> 0 </div> // jquery var price = 1000; $('.total-price').html(price); $('.total-price').text(price);