I\'ve read all the topics about my question but cannot solve my problem. I want to get php function result using jQuery AJAX.
function.php
function g
JQuery
$.ajax({ url: "script.php", type: "POST", data: "id=1", success: function(msg){ alert(msg); } }
PHP
You'll get php function result in msg from $.ajax success state.
msg
$.ajax success