Parsing Data as integer
<pre><code>&lt;script&gt;
var intVar = parseInt($(.span).data('1'));
alert(data)   // output Nan
&lt;/script&gt;

---------------



      &lt;span id ="span" class ="span" data-1="4" /&gt;
</code></pre>

<p>i want 'intVar'  as integer, but unable to parse 'data-1'</p>
