I'd like to pass addition POST values below in addition to the 'page' variable that is already in the jquery below. What is the most efficient way of adding these? Thanks
$_POST['cat']
$_POST['testid']
<script type="text/javascript">
$(document).ready(function() {
$("#results" ).load( "/get_pages.php"); //load initial records
$("#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("/get_pages.php",{"page":page}, function(){ //get content from PHP page
$(".loading-div").hide(); //once done, hide loading element
});
});
});
</script>
<div id="results"></div>