I’m trying to create a line break in the html page after data is received from the server, using append method. This is a snippet of my code (jquery):
ws.onmessage = function(evt) $("#display").append("message: " + evt.data);
This is the div in the html:
<div id ="display"></div>
I’m a newbie, so please forgive the simplicity of the question.
Thanks
try this:
another option could be