Topic awaiting preservation: Add a form element onClick() (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: :morF |
posted 09-18-2005 01:08
From reading some other threads here I gather that this may just be possible... whether it will be possible cross-browser I'm not so sure on. Basically what I have is a form with (by default) one File input element, a submit and reset button. That's all. What I want to do is to have either a pair of other buttons that will allow a user, onClick, to add or remove another File input element (between 1 and 10 elements), or a text input and a button that will allow them to specify the number of fields they wish to have (again, betwen one and ten, to keep things easy on the processing server). So tell me, oh Javascript Guru type people... is this possible? and, if so, how? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-18-2005 02:13
Sounds like you're doing something like this: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-19-2005 00:45
This isn't really difficult you just need to add the elements to the DOM. |