JQUERY + Return an Array from a Function
<p>I'm struggling to return an array from a function call - code below:</p>

<pre><code>///////////// Generic Functions
function spotJoinPosition() {
    var pos = {  
                offset: $('div#spotJoinSite').offset(),                                
                width: $('div#spotJoinSite').width(),
                height: $('div#spotJoinSite').height()
    }
    return(pos);
}


        var positionData = spotJoinPosition();
        alert(positionData);
        alert(positionData[width]);
</code></pre>

<p>When I alert positionData I get [object][object] and then undefined.</p>

<p>Advice?</p>
