wow!
It looks so nice but...it doesn't work in my IE
of course there's hope it's something wrong with my M$ browser....but let's assume that not,
so, I did small test: at the beginning of changeuploads() function I added:
alert ( document.getElementById("uploads").tagName )
my IE showed 'FORM' (excuse me?) but Mozilla: 'SELECT' (uff...)
The first: please, use unique names and id-s...I changed id/name of your form adding '_form' suffix.
The second: construction of a table.
When user selects required number of uploads the innerHTML of 'mulup' span will be:
<TABLE><input type="file" name="file_1"<br>......</TABLE><input type="submit">
ooops...?
So, in my opinion, it would be better to do small redesign of this code, it means: to write
simple function returning full content of one row, then to invoke this function as many times
as required. In this way you will generate let's say - interior - of your table.
Finally, <table>,</table> tags and submit button have to be added.
Of course, you can append tr/td/input tags directly in a loop....but when you separate this piece of code
it will be a little bit easier to modify design of this table ( f.e. to set different colors for even/odd rows, etc..)
And the last one...it's a hint only: instead of typing <option value=.....></option> twenty times,
you can use a loop...by the way, you can control max number of uploads, because
value of maxUploads variable may be set dynamically during page generation
Here you have code:
regards,
Natasza