Like the snippet belowNote that in my example the ajax call is done inside a function called onPressRegister. In jQuery, you can write an AJAX call that is chained to a done function. Sometimes this function does not get called. One of things to examine is the response that you are receiving from the server. For awhile, the standard way of making an AJAX call using jQuery is rather simple — by using the . ajax() functionSee that how the .