jquery code to trigger php function

Solutions on MaxInterview for jquery code to trigger php function by the best coders in the world

showing results for - "jquery code to trigger php function"
Rafaela
13 Nov 2018
1$.ajax({ url: 'phpscriptname.php',
2         data: {function2call: 'getEmployeesList', otherkey:otherdata},
3         type: 'post',
4         success: function(output) {
5                      alert(output);
6         }
7});