I\'m making a mini-game where a player attacks a npc and in the center is a white box (div) that I call (log), because when the player damages/attacks the npc, I want to be
If you are using jQuery and you want to add content to the existing contents of the div, you can use .html() within the brackets:
.html()
$("#log").html($('#log').html() + " New content!");
Initial Content