Reply To: Ajax bbpress reply
Using JavaScript or a library like jQuery, create an Ajax request. To process the request, create a server-side endpoint (for instance, a PHP file). In the server-side code, retrieve the content of the response from the database. Then, return the response’s content in JSON or HTML format. Using the obtained content, modify the HTML elements on the website using JavaScript.
Hope this help you.