How to read a div property in js?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3211326/how-to-get-the-attributes-of-a-html-element-using-jquery">How to get the attributes of a HTML element using JQuery?</a>  </p>
</blockquote>



<p>I have a piece of JS and I need to read property 'value' from a div.</p>

<p>I do this:</p>

<pre><code>$('#calendar_event_path')
</code></pre>

<p>I get this as and answer:</p>

<pre><code>[&lt;div id=​"calendar_event_path" value=​"company_events_index"&gt;​&lt;/div&gt;​]
</code></pre>

<p>How can I get "company_events_index" value from the div?</p>
