The main JS methods are as follows:
function AddRow () {
var input = document.createelement (' input ');
input.setattribute ("type", "file");
input.setattribute ("size", "55");
input.setattribute ("name", "Thefile");
$ ("#theFile"). After (input);
$ ("#theFile"). After (Document.createelement ("BR"));
}
The elements in the JSP page are as follows:
<TR>
<th width= "137" align= "right" ><strong> file selection:</strong></tdh>
<TD valign=top>
<input name= "thename" type= "hidden" size= ">"
<input class= "Forminputtext" Name=thefile id= "thefile" Type=file size= "onpropertychange=" MM_ CHANGEPROP2 (this.value) ">
<input type= "button" id= "filebtn" name= "filebtn" class= "Forminputtext" value= "continue adding" onclick= "AddRow ()" >
</TD>
</TR>
As follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/49/21/wKiom1QPyeSwfdbTAABgdwh74Cs373.jpg "title=" 123. JPG "alt=" wkiom1qpyeswfdbtaabgdwh74cs373.jpg "/>
About JS dynamic add upload File box