Javascript. It is possible to add id on splitted word?? using word.split("")
<pre><code>var wtc = document.getElementById("sw").value;
var cw = wtc.split("").join('&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;');
cw.toString();
var x=document.getElementById("demo");
x.innerHTML=cw;
</code></pre>

<p>I have this code. how can i add id to the splitted(am i right on my term??) word.. it is possible?
I want is to add id on each letter that is splited. I dont know the exact number of letter because it's depend on the user's inputted word.</p>

<p>for example. i have this word from split.</p>

<pre><code>[W][O][R][M]
</code></pre>

<p>i want it to be something it this. or anything that have an id :)</p>

<pre><code>&lt;div id="DIVtext1"&gt;W&lt;/div&gt; 
&lt;div id="DIVtext2"&gt;O&lt;/div&gt; 
&lt;div id="DIVtext3"&gt;R&lt;/div&gt; 
&lt;div id="DIVtext4"&gt;M&lt;/div&gt; 
</code></pre>

<p>Thanks!</p>
