title: get return value of jQuery get().done() function
body: <p>I have the code:</p>
  
  <pre><code>function images(){
      $.get("page").done(function(data) {
          manipulation to get required data
      });
  }
  </code></pre>
  
  <p>and I have tried to get a variable from inside the get function, using global variables, return values, and functions outside of the function. Does anyone know how I would be able to get a variable from inside the get function and return it as a value if I called <code>images()</code>?</p>