If you are getting first alert as undefined then obviously the response is not properly sent or the response is not properly received from the response. Check out on server side if the response if being sent. Or create a fiddle. Otherwise, your code is good . You have done good job their. Check out the api you used.
Asked in February 2016Viewed 1,168 timesVoted 9Answered 1 times