5
I have the following code with a <input>
text type and other file type. See:
<form action="#" method="post" enctype="multipart/form-data">
Name file:
<input type="text" name="name" id="name"><br/><br/>
<input type="file" name="file" id="file">
</form>
I’d like to fill in the input text with the file name uploaded to input file. What better way to do that?
Rafael, about using
document.formName.name
, here: https://answall.com/a/123106/129– Sergio
Thank you @Sergio
– RFL