copy - paste in javascript
<p>I have this code </p>

<pre><code>&lt;input name="mpan[]" value="" maxlength="2" size="2"&gt;
&lt;input name="mpan[]" value="" maxlength="2" size="3"&gt; 
&lt;input name="mpan[]" value="" maxlength="2" size="3"&gt;
&lt;input name="mpan[]" value="" maxlength="2" size="12"&gt;
</code></pre>

<p>What I have to do is I am provided with a large key for example <code>0380112129021</code>. When I do Ctrl+C on that key and select any box and press Ctrl+V, the number automatically get pasted in different box, for example: first input box gets <code>03</code>, next gets <code>801</code>, next gets <code>112</code> and rest gets pasted on last one <code>129021</code>.how do i achive this from javascript</p>
