SyntaxFix
Write A Post
Hire A Developer
Questions
Using post jquery instead helped me to solve this problem
$.post('url', data, function(response) { console.log(response); });