I have this PHP function:
function _test($pram)
{
return echo 'aaaf';
}
How can I insert AJAX data into that PHP function, as far as i can search on google, AJAX will load only on single PHP pages.
My JavaScript code:
$("button").click(function(){
$.ajax({url: "function.php", success: function(result){
//
}});
});
function.php
contains multiple functions with parameters