Good day everyone,

I new this is not to hard but I forgot on how to do it.

I have this form:

<form><table><tr>
<td>Add Picture:</td>
<td colspan="3"><input name="txtPics" type="file" /></td>
<td>
<input type="button" name="addFileField" onClick="Add_New_field('fieldName')" />
</td>
</tr>
<tr>
</table></form>

My problem is that I want to dynamically add new file field below the current fields when the button is click.

Look into document.createElement and elem.appendChild .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.