
hi,
I created a button when i click on button(next/prev) new two textbox is created. i want to do the two textbox will show by next and prev button. when i click the next button only two textbox show same way prev button. dont add two textbox two by two,and i want to do that when i will click submit button the text should be submitted(it shows the value in alert). i also want the text box should generate in front of NEW button(next/prev) and after it submits it should show before the NEW line.dont add again two box
please help me......very urgent.
this is my code:
<html>
<head>
<script>
function generatenew()
{
var d=document.getElementById("div");
d.innerHTML+="<p><input type='text' name='name[]'>";
d.innerHTML+="<p><input type='text' name='topic[]'>";
}
</script>
</head>
<body>
<form name='abc' method="post" action="">
<div id="div"></div>
<b><font color="red">
<font size="4">New</font></font></b>
<input type="button" value="prev" onclick="generatenew()">
<input type="button" value="next" onclick="generatenew()">
</form>
</body>
</html>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.