howto resolve this string with jquery?
<p>i have a problem, i'm working with jquery and some ajax requests.</p>

<p>i'm getting a string like: <code>5 12 6 8</code></p>

<p>now i want to split this string into <code>5,12,6,8</code> and then add the numbers to some elements like:</p>

<pre><code>$("#l1").html("5");
$("#l2").html("12");
$("#l3").html("6");
$("#l4").html("8");
</code></pre>

<p>the problem is, that there are not always 4 numbers, sometimes 8, other times just one. when there is just one it would be:</p>

<pre><code>$("#l1").html("x");
</code></pre>

<p>x should be the number which i get.</p>

<p>how to resolve this with jquery?</p>
