I have Implement Pagination with c# and Jquery .This is my code
I have one query It's now static number 1,2,3 .I want to how to dynamic this number for e.g only one post display 1
$('.pagination li a').click(function (e) {
e.preventDefault();
var id = $(this).text();
e.preventDefault();
$.ajax({
url: "/Utility/BlogPostId?Id=" + id,
type: "POST",
dataType: "html",
traditional: true,
contentType: "application/json; charset=utf-8",
success: function (data) {
$(".blog-layout-content").html("");
$(".blog-layout-content").html(data);
},
});
});

Pranam BhatRank #500 · 4.9K reputationPosted Jun 4, 2021, 2:44 AM EDT
Salman BegRank #284 · 8.8K reputationPosted Jun 4, 2021, 5:35 AM EDT