-1
<script>
$(".coment").load("coments.php #coments");
</script>
This function causes it to load the comments after sending it! This makes the comment be sent at the same time and displayed!
Only when I put this code to view the comments, it is not loading any comments! I checked if it is the div, if it is the "class" if it is the "id" but none will! I need help!
Daniel, welcome to Stack Overflow. I ask you to edit your question and add the full code of the html page that makes the request, as well as the.php coments script so that we can assist you in the best way possible.
– Bruno Bermann