My Chat DIV is designed to send and receive messages.
Currently, messages appear at the top of the DIV and move downwards (as shown in red). Once they reach the bottom, they are pushed upwards using the jQuery snippet below:
.scrollTop(activeConversationsDIV[0].scrollHeight);
I was wondering if there is a way to start displaying messages from the bottom of the DIV instead? This would make it more user-friendly as users can see what they are typing closer to where they type.
Is there a method to reverse the flow of messages, starting from the bottom of the DIV moving upward?
Thank you