Answers for "change content of p tag with html element in jquery"

6

jquery change text of div

$('#dialog_title_span').text("new dialog title");
Posted by: Guest on December-22-2020
1

change html div jquery

// 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);
Posted by: Guest on October-06-2021

Browse Popular Code Answers by Language