This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Main Topics
Browse All TopicsI've been playing around with the code offered here:
http://javascript.internet
Right now I have 10 rows that are static, and each row has an "add/delete" button to add more text fields WITHIN the row.
The problem is this:
* Row 1: Add text field
* Row 2: Add text field (it now adds TWO text fields)
* Row 3: Add text field (it adds THREE)
* Delete functions in a similar manner
So, it's putting the extra text fields where I want them, but I can't separate out each row and have the code treat them separately.
Here's the JS code. Of course, thank you to anyone that can help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: avnerPosted on 2009-01-19 at 01:19:42ID: 23409110
What a funny code.
arah' + i); arrInput.l ength); ");
arah' + number);
.length;in tI++) { ut( oPara.arrInput[intI], oPara.arrInputValue[intI], number);
ut.length) ; lue;
alue("+ id +",this.value)' value='"+ value +"' size='30'><br>";
Try to work with this :
function addInput(i) {
var oPara = document.getElementById('p
if (typeof (oPara.arrInput) == "undefined")
{
oPara.arrInput = new Array();
oPara.arrInputValue = new Array();
}
oPara.arrInput.push(oPara.
oPara.arrInputValue.push("
display(i);
}
function deleteInput(i) {
number = i
if (arrInput.length > 0) {
arrInput.pop();
arrInputValue.pop();
}
display(i);
}
function display(number) {
var oPara = document.getElementById('p
oPara.innerHTML="";
for (intI=0;intI<oPara.arrInput
oPara.innerHTML+=createInp
}
}
function saveValue(intId,strValue) {
oPara.arrInput.push(arrInp
arrInputValue[intId]=strVa
}
function createInput(id,value, number) {
return id+2 + ". <input type='text' id='name" + number + "-"+ id +"' onChange='javascript:saveV
}