I need to create a function in JavaScript, that will write some text (which was retrieved with XMLHttpRequest) to a new element underneath the previous one.
To give you an example, imagine a chat room. When someone writes something new, a new line is created.
Also if possible how this would be in jQuery?
I want to see if in jQuery would be much easier.
If you need anymore information please let me know!
Thanks in advance.
In jquery you would have to do something like:
It’s just a basic idea, you’d have to work on this