jquery post with promises

Solutions on MaxInterview for jquery post with promises by the best coders in the world

showing results for - "jquery post with promises"
Brahim
04 Jan 2019
1function ajax(options) {
2  return new Promise(function (resolve, reject) {
3    $.ajax(options).done(resolve).fail(reject);
4  });
5}