append text javascript,don't get values
<p>This is the code in append input box in java script,i don't get there values in the inputbox</p>

<pre><code>&lt;script type="text/javascript"&gt;
function addInput()
{
    var x = document.getElementById("inputs");
    x.innerHTML += "&lt;input type=\"text\"  name=\"box[]\" id=\"box[]\"/&gt;";
    i++;
}
function getdata()
{

}
&lt;/script&gt;


&lt;input type="button" onmousedown="addInput();" value="add" /&gt;
&lt;input type="button" value="getvalues" onclick="getdata()"  /&gt;
&lt;div id="inputs"&gt;&lt;/div&gt;
</code></pre>
