We are change the input type file title with the help of this script
Like Browse Title Change in to Choice File
use this script for change Title
function browseclick(){
var fileinput = document.getElementById("browse"); // use input file id here
fileinput.click();
}
function handlechange()
{
var fileinput = document.getElementById("browse");
var textinput = document.getElementById("filename"); //Change the browser title
textinput.value = fileinput.value; //Value of input type button equal to value of input type file
}
And also use this html code:-
<input type="file" id="browse" name="fileupload" style="display: none" onChange="handlechange();"/>
<input type="button" value="Choice File" id="fakeBrowse" onclick="browseclick();"/>
0 Comment(s)