$.GET() didn't return value
<p>i have script like this.</p>

<pre><code>function getContactLastDateOfDeparture(contactId) {
    $.get(
        '/transaction/ajaxGetContactLastDateOfDeparture/'+contactId, 
        '', 
        function(data){
            alert(data);
            return data;
        }, 
        'json'
    );
}
</code></pre>

<p>I test script above with <code>console.log(getContactLastDateOfDeparture(2144))</code>, when in alert phase it outputted string <code>2011-12-06</code>, but when phase <code>return</code> it outputed <code>undefined</code></p>

<p>How to make the return should be <code>2011-12-06</code> ?</p>
