Avatar of EMB01
EMB01
Flag for United States of America

asked on 

Adding Row to Table with Contents

Can someone show me how to add a row on to this table when the "add" button is clicked?

I want this to be added when the button gets clicked:
<tr>
<td>
<input type="file" name="fileupload[]">
</td>
</tr>
<input type="button" name="add">
<form name="upload" method="post" action="upload.php" enctype="multipart/form-data">
<table>
<tr>
<td>
<input type="file" name="fileupload[]">
</td>
</tr>
<tr>
<td>
<input type="file" name="fileupload[]">
</td>
</tr>
<tr>
<td>
<input type="submit" name="submit">
</td>
</tr>
</table>
</form>

Open in new window

Web Languages and StandardsJavaScriptWeb Development

Avatar of undefined
Last Comment
experts1

8/22/2022 - Mon