When user clicks the add button a new row appears which i did it with this code:
function generateRow() {
var d = document.getElementById("add");
d.innerHTML += "<p><input type='text' name='items'>";
}
However, when I type some data into the added text field and then click the add button again the data I typed in the other row disappears. Can someone tell me a better solution for the JavaScript. I don't mind jQuery if it works better. Advance thanks!