skip to Main Content

Jquery ajax – PHP, using Ajax not working calling php file in other directory

Main.php <script> $(document).ready(function(){ searchUser(); }); function searchUser() { alert("aaaaaaaa"); var data = $("#user-search-form").serialize(); $.ajax({ type: "POST", url: "test.php", data: data, success: function(response) { alert("bbbbbbbb"); } }); alert("cccccccc"); return false; } test.php <?php echo "testing 1234" ?> Directory: phpturtorial/admin/main.php phptutorial/admin/test.php I…

VIEW QUESTION
Back To Top
Search