I have below script which when click on Add More button it keep on adding the "Upload" file type... My problem is I cannot make this arrange or decorate in table cell. When I try to put in table cell the input field shows up below the submit button in Mozilla and some postion in IE
I want to hv this script or any other script like this:
===============================================
Upload file/s: [..........] [BROWSE]
[ADD MORE FILE BUTTON]
[SUBMIT][RESET]
==============================================
If user clicks on [add more file button] this is how it look
Upload file/s: [..........] [BROWSE]
[..........] [BROWSE]
[ADD MORE FILE BUTTON]
and so on....
<script type="text/javascript">
var pntr=1;
var frm;
function WriteNew()
{
frm=document.forms[0];
In=document.createElement('input');
In.setAttribute('type','file');
In.setAttribute('name','file'+pntr);
In.setAttribute('id','file'+pntr);
pntr++;
frm.appendChild(In);
Br=document.createElement('br');
frm.appendChild(Br);
}
</script>
<body onload="WriteNew()">
<button onClick="document.forms[0].submit()"> Submit Form </button><button onClick="WriteNew()">Add More Files</button>
I want to hv this script or any other script like this:
===============================================
Upload file/s: [..........] [BROWSE]
[ADD MORE FILE BUTTON]
[SUBMIT][RESET]
==============================================
If user clicks on [add more file button] this is how it look
Upload file/s: [..........] [BROWSE]
[..........] [BROWSE]
[ADD MORE FILE BUTTON]
and so on....
<script type="text/javascript">
var pntr=1;
var frm;
function WriteNew()
{
frm=document.forms[0];
In=document.createElement('input');
In.setAttribute('type','file');
In.setAttribute('name','file'+pntr);
In.setAttribute('id','file'+pntr);
pntr++;
frm.appendChild(In);
Br=document.createElement('br');
frm.appendChild(Br);
}
</script>
<body onload="WriteNew()">
<button onClick="document.forms[0].submit()"> Submit Form </button><button onClick="WriteNew()">Add More Files</button>