How to access object
<p>I want alert object <code>key</code> name and its <code>value</code>. But it is not working.</p>

<pre><code>$(function() {
    var james =  {first: '1,2,3', second: '4,5,6' } 
    $('a').click(function(){
        alert(james[first]) 
    })
})
</code></pre>
