A
A
Anatoly2021-06-11 07:05:21
css
Anatoly, 2021-06-11 07:05:21

How to remove the comment after the input[type="files"] button?

input[type="file"]How to remove the inscriptions from the button : "File not selected", "Number of files:",...
If you write input { color: transparent }, then there will be no text, but there will be an empty space.
If you write input { display: none }, then the button itself will disappear, and nothing can be drawn in its place.

Looking for a solution without changing the html.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Simakin, 2021-06-11
@Tolly

It's impossible. I can only suggest with html changes:

<input type="file" style="display: none" id="getFile">
<button onclick="document.getElementById('getFile').click()">Выберите файл</button>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question