how to trigger javascript function in 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);
}
});