Why can't change the value from inside Jquery $.post function (JavaScript)
<p>I am trying to get the response from ajax call and save it in another value but wont work
this is my code</p>

<pre><code>x='go'
$.post("someurl",function(data){
    x=data;
})
alert(x)//go
</code></pre>

<p>or this 
<a href="http://jsfiddle.net/8vF3K/1/" rel="nofollow">jsFiddle</a></p>

<p>I am looking for a solution for this problem without storing the value in any HTML container</p>
