K
K
kiril90112019-06-26 22:28:25
Frontend
kiril9011, 2019-06-26 22:28:25

How to style input type=file?

There is a code:

<label for="uploadbtn" class="uploadButton">Загрузить файл</label>
                  <input type=hidden name='MAX_FILE_SIZE' value='3000000'><input type=file name=file2 style="opacity: 0; z-index: -1;" id="uploadbtn"><br>

Styling type=file works great, but how do I change "Upload File" to "File Selected" instead of "Upload File" after selecting a file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2019-06-26
@kiril9011

No way.
Make it transparent and write whatever you want under it. You can even draw a cat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question