jquery run function php code example
Example: jquery code to trigger php function
$.ajax({ url: 'phpscriptname.php',
data: {function2call: 'getEmployeesList', otherkey:otherdata},
type: 'post',
success: function(output) {
alert(output);
}
});