Get value between html tag when using .data() in jquery
<p>How to get the value among the  &amp;  if using data()?</p>

<p>example code:</p>

<pre><code>&lt;span data-name="username"&gt; James&lt;/span&gt;
</code></pre>

<p>i can get the value of data-name by using : <code>$("span:visible").data("name"); // OUTPUT : username</code>
but i want to get the value "James", i tried add .text() &amp; .val() at the end, but it is not working.</p>

<p>Thanks.
Jack</p>
