PHP and HTML
jQuery
$(document).on("click",".pbutton",function() { var selected = this.text; //Selected page if(selected=="«"){selected = 1;} //first rows if(selected=="»"){selected = $(".last_page").attr("id");} //last rows $.ajax({ url:'admin.php', type:'POST', data:{ command:"show_regular_quotation", //name of var: value of var selected:selected } }).done(function(data){ $(".content").html(data); }); });
The code is perfectly compatible with bootstrap.