How to access object name for their value using jquery
<p>I have on object and I want to print their name and property name. How can I do that. I can access their properties value. Like I want print object name like 'first' and 'second' and their properties like 'value' and 'text' dont want to print value</p>

<pre><code>&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
    &lt;title&gt;Untitled Document&lt;/title&gt;
    &lt;script type="text/javascript" src="jquery-1.7.2.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        $(function (){
            var myDate= {
                'first':{value:'30',text:'i am the one'},
                'second':{value:'50',text:'i am the second'}
            }

            $('a').click(function (){
                var t= $(this).text();
                if(t=="both"){
                    $('.text').text(myDate['first'] + '' + myDate['second'] );
                } else {
                    $('.text').text(myDate[t]);
                }
            });
        });
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class="text"&gt;&lt;/div&gt;
    &lt;a href="#"&gt;first&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="#"&gt;second&lt;/a&gt;
    &lt;a href="#"&gt;both&lt;/a&gt;​
&lt;/body&gt;
</code></pre>
