How to return promise from "ajax success"? – Jquery ajax
I need to write function which prepare me a HTML to inuput into my site, I tried like this function prepareHTML(valId){ $.ajax({ type: "POST", url: "SOAPulr_getData", data: {operationId: valId} }) .done(function(result, status, jqXHR){ var def = $.Deferred(); var response =…