sayfalama kısmını koyacaksın
benim kodum
<script>
$(document).ready(function() {
$("#results" ).load( "filter.php"); //load initial records
//executes code below when user click on pagination links
$("#results").on( "click", ".pagination a", function (e){
e.preventDefault();
$(".loading-div").show(); //show loading element
var page = $(this).attr("data-page"); //get page number from link
$("#results").load("filter.php",{"page":page}, function(){ //get content from PHP page
$(".loading-div").hide(); //once done, hide loading element
});
});
});
</script>
<script>
function yeterartik(){
event.preventDefault();
var adi = $("#adi").val();
var marka = $("#marka").val();
$.ajax({
type: "POST",
url: "filter.php",
data: "adi=" + adi + "&marka=" + marka,
success: function(sonuc){
$("#yenile").html(sonuc);
$(document).ready(function() {
//executes code below when user click on pagination links
$("#results").on( "click", ".pagination a", function (e){
e.preventDefault();
$(".loading-div").show(); //show loading element
var page = $(this).attr("data-page"); //get page number from link
$("#results").load("filter.php",{"page":page}, function(){ //get content from PHP page
$(".loading-div").hide(); //once done, hide loading element
});
});
});
}
});
}
</script>
yani sol taraftan bir şey yapıldığında sayfama çalışmıyor