how to display a array element one by one with a spacebar in a input field in jquery?
<p>i have a large array with a lot of string
i want to display it in a text field one by one with a space bar concatenate to each one automatically </p>

<p>my code here</p>

<pre><code>&lt;script&gt;
    x=0
    function abc(){

    for (i=0;i&lt;words[x].length;i++){
        if(x=0)
            x++;

        document.getElementById("type").value=words[x];
    }

&lt;/script&gt;
</code></pre>

<p>my input field id is <code>type</code> and my array is <code>words</code></p>
