javascript split string to array of int
<p>I have a string that's on the page and from which I want an array of int.</p>

<pre><code>&lt;div id="TheData"&gt;2,3,0,43,23,53&lt;/div&gt;
</code></pre>

<p>I'm writing this:</p>

<pre><code>var ArrayData = ($('#TheData').html()).split(',');
</code></pre>

<p>However, ArrayData becomes an array of strings. How can I get an array of ints? Note that some of the elements in the HTML can be equal to 0.</p>

<p>Thanks.</p>
