I'm attempting to pass a function when changing pages in jQuery Mobile, but I keep getting an error that points to `$.ajax`
$( ":mobile-pagecontainer" ).pagecontainer(
"change",
"#schoolperformance",
{ reload : true, showLoadMsg : false,
$.ajax({
type: 'POST',
url: "custom/php/showinfo.php",
success: function(data){
$("#new").html(data)
},
error: function(){ //on error
console.log('failed to successfully destroy');
}
});
});