Hello, so im building a simple site that is a forum. It allows users to create threads and for users to reply to them.
I want to add functionality to the website so that a user can post a comment and its shown immedietly without requiring a page refresh.
Im just not sure the best to go about it, i understand i need to use AJAX and i have ajax code working. Just need to then update the data on the website itself. My replies container is quite big so i want to avoid just having javascript insert into this if possible.
Is there a way in JS for me to insert into the while look? Here is my current code for the replies container, which looks through each of the replies and shows them along with buttons for liking, disliking. Editing and Deleting. Then below this there is a box for users to write and post comments.