Answers for "how to change choose file text in input type file"

1

change choose file button text

<button style="display:block;width:120px; height:30px;" onclick="document.getElementById('getFile').click()">Your text here</button>


<input type='file' id="getFile" style="display:none">
Posted by: Guest on December-11-2020
0

set text of file input

<input type="button" id="loadFileXml" value="loadXml" onclick="document.getElementById('file').click();" />
<input type="file" style="display:none;" id="file" name="file"/>
Posted by: Guest on May-22-2021

Code answers related to "how to change choose file text in input type file"

Browse Popular Code Answers by Language