- Joined
- Apr 5, 2012
- Messages
- 113
- Reaction score
- 8
deleted
Last edited:
function getMoreComments() {
var amount = $('#streamcntw').val();
$.ajax({
url: "ajax/comment.php?aid=" + $('#articleid').val() + "&amount=" + amount
}).done(function(html) {
$("#comments").append(html);
});
$('#streamcntw').val(amount + 5);
}
<a href="#comments" onclick="getMoreComments()">Show more comments</a>