Hey there yall....youve been a great help in the past and now i think someone can help me again....

I need a way to have a page add more form elements to itself when the user clicks a "+" button. basically, we're making a newsletter and making 3 paragraphs or so available....if they click the "+", it'll add another, and another, and another...up to 15...without REFRESHING the page....ive include the mockup i did...has anyone seen this?
thanks a million to all of you!

To add a textarea are you would just do:
var txtArea= document.createElement("textarea")
txtArea.setAttribute("name","txtStatLog");
txtArea.setAttribute("value","fill er up"
txtArea.setAttribute("cols","30");
txtArea.setAttribute("rows","10");

Hope this is enough to get you started.

robocop

10-01-2003, 08:24 PM

wow....cool man, ill keep that as an option....

do you know how to include a variable in something like

document.all.row1.style.display = 'none';

but where the "1" is, id like to dynamically put in something...like a variable name