Code:
for(i = 1; i <= count_1; i++) {
code = code + "<textarea rows=2 cols=21 name=Description" + i
+ " id=Description" + i + "></textarea>";
for(j = 0; j < arr.length; j++) {
code = code + "<input type=file name=file" + j
+ " id =file" + j + " class='browser' />";
}
}
document.getElementById('range_type').innerHTML = code;
I have set the folowing attributes into my form tag.
Code:
name = example method='POST' style='display:inline;' ENCTYPE='multipart/form-data' onsubmit='return validate form()'