L
L
lavezzi12018-03-07 18:49:49
JavaScript
lavezzi1, 2018-03-07 18:49:49

How to competently call input type file from several places competently?

In general, the document lies in one place, I open it through , but then there was a need to put buttons in several places to open the dialog. How to semantically arrange? <input id="uploadInput" type="file" multiple><label for="uploadInput">Upload files</label>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Epifanov, 2018-03-08
@lavezzi1

Look here
specifically:

More than one LABEL may be associated with the same control by creating multiple references via the for attribute.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question