This PHP method will call and fetch new values form the database and return them to the .ajax() method. Then you can simply append them to your ul element.
Below is the explanation of jQuery .ajax() method:
Code:
$.ajax({
type: "POST",
url: "jquery-ajax-subscribe.php", // php page
data:
Leave a comment: