Javascript:
function changeIt()
{
var i = 1;
var j = 1;
my_div.innerHTML = "<br><br><input type='text' name='mytext' + i value='pleaseEnter malzeme' > <input type='text' name='mytet2'+j value='please quantity'> "
}
HTML:
<input type="button" value="Add Ingredients" onClick="changeIt()" />
<div id="my_div"></div>
I have these code piece to add textbox dynamically in my HTML file. Problem is that I cannot reach text.
System.out.print(request.getParameter("mytext1")); //doesnt work to reach mytext1 value.
How can I solve this problem? Thanks in advance.