I'm adding lines to a div
element with javascript using append:
myDiv.append("sometext <br>");
After say 20 lines, I'd like to remove the earliest line, and keep removing lines as I add new one to prevent it from getting to large. What is an easy way to do this?
Thanks.
and that did not work. It only removed the br elements.