How to get the value of a variable from a callback of jQuery.post?
<p>I am trying to use the return value(response) from the callback outside the jQuery.post API..how can that be done?</p>

<pre><code>jQuery.post( ajaxurl, 'action', function( response ) 
{
console.log(response); // this comes back with "working"

// i tried this responseVal = response;  but didn't work            

}); 

alert(response); // this will be undefined.
</code></pre>

<p>So I want the alert to have access to response....Yes I know I could easily alerted it inside the callback but my application needs to access this outside.</p>

<p>Thanks in advance.</p>
