getting the ajax response message on fail – Jquery ajax
I'm using jquery and ajax to get the data from the API but when the user insert invalid data, I want to get the message that coming from xhr in an alert. this is the code I'm using const settings…