KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Here is some code I'd like to execute. I'd like to wait for AJAX response so I can return something from the server. Any way to achieve this? function functABC(){ $.ajax({ url: 'myPage.php', data: {id: id}, success: function(data) { return data; } }); //Wait for AJAX (???) } var response = functABC();
Tags (comma-separated)
Save Edits
Cancel