How can I set a Global Variable from within a function
<p>How can I set a Global Variable from within a function?</p>

<pre><code>$(document).ready(function() {
    var option = '';

    $("[name=select_option_selected]").change(function() { 
        var option = $(this).val();
        alert(option); // Example: Foo  
    });

    alert(option); // Need it to alert Foo from the above change function    
});
</code></pre>
