How to print a nested array inside the value of a cloned input object?
<p>I have a <a href="http://jsfiddle.net/rayd360/7NHXf/2/" rel="nofollow">fiddle</a></p>

<p>code:</p>

<pre><code>//create array with values
thisArray= ['',[]];
thisArray[0] = ['numbers',['one','two','three','four','five']];
// have a clean clone of input
var newElem = $('#input').clone();

//search through aray and print the nested array inside the
//   value of the cloned input
for(i = 0; i&lt;thisArray[0][1].length; i++){

    $(newElem).val(thisArray[0][1][i]);
    $('input.input').last().after(newElem);
}
</code></pre>

<p>Conditions: I cannot change the HTML or layout of the array.</p>

<p>Question: how can i edit the for loop to display the numbers in the array one after another inside the cloned input field? so the final output will be six input fields with a number in each except the first one.</p>
