Why is my Ajax not working?
preventDefault(); before ajax call that's why its prevent calling of that function and your Ajax call will not call. So try to remove that e. prevent Default() before Ajax call and add it to the after Ajax call.
How do I know if Ajax is working?
When working with multiple AJAX requests at that time its hard to detect when will be all request is being completed. You can use the setTimout() method which will execute your action after your given time. But it is not a better solution. jQuery has the inbuilt event handler to detect AJAX completion.
What causes Ajax errors?
Many pages send AJAX requests to a server. Because this relies on the cooperation of the server and the network between the client and the server, you can expect these AJAX errors: Your JavaScript program receives an error response instead of data; Your program has to wait too long for the response.