jQuery set html d'élément
$("button").click(function(){
$("p").html("Hello <b>world</b>!");
});
Duco Defiant Dogfish
$("button").click(function(){
$("p").html("Hello <b>world</b>!");
});
$(element).html("Hello World");
// 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);
var itemtoReplaceContentOf = $('#regTitle');
itemtoReplaceContentOf.html('');
newcontent.appendTo(itemtoReplaceContentOf);
//Takes input from entire page and uses it to change the HTML of h1
$(document).keypress(function(event){
$("h1").text(event.key);
});