creating textbox Via js
<p>my code was working and taking my text from textbox to next page + my Input control to next page via js but suddenly there seems to be a blunder whats wrong in following code </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
var i=2;
function AddTextbox(){
container.innerHTML=container.innerHTML+'&lt;input type="text" name="'+ i + '"&gt;';
i++;
}
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;form action="next.php" method="post"&gt;
&lt;input type="text" name="1" /&gt;
&lt;input type="button" onClick="AddTextbox" name="btn" value="add" /&gt;
&lt;input type="submit" name="submit" value="sub" /&gt;
&lt;div id="container"&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt; 
</code></pre>
