javascript & jQuery scope question
<p>I have the following method:</p>

<pre><code>    function priceRange(FESTIVALID){
                      jQuery.ajax({
                            url     : '/actions/festheads.cfc?method=getPriceRangeByGUID',
                            type    : 'POST',
                            data    : 'FESTIVALID='+FESTIVALID,
                            dataType: 'json',
                            success : function(data) {
                                console.info("AJAX:qPrices",data.MINPRICE);

                                    formatedPriceRange = '$ '+data.MINPRICE;
                                    console.info("AJAX:formatedPriceRange", formatedPriceRange);

                                }//success
                            });//ajax;


                    //
                    return formatedPriceRange;
                };
</code></pre>

<p>The second console.info correctly displays the formatedPriceRange,
but outside the function is undefined.</p>

<p>how can I access this variable out side the priceRange function?
Thanks</p>
