Html 如何更改上传文本语言?
我正在使用codeigniter 3.1Html 如何更改上传文本语言?,html,codeigniter,codeigniter-3,Html,Codeigniter,Codeigniter 3,我正在使用codeigniter 3.1 如何更改上载文本语言? <input type="file" name="file" /> 试试这个 HTML: <div> <input type='file'/> <span id='val'></span> <span id='button'>Select File</span> </div> 我非常确定浏览器语言会自动提
如何更改上载文本语言?
<input type="file" name="file" />
试试这个
HTML:
<div>
<input type='file'/>
<span id='val'></span>
<span id='button'>Select File</span>
</div>
我非常确定浏览器语言会自动提供,因此您实际上不需要设置itI不知道它仍在向我显示
选择文件-未选择文件
您添加css和javascript了吗?或者可能是css配置。谢谢。你能回答这个问题吗?
<div>
<input type='file'/>
<span id='val'></span>
<span id='button'>Select File</span>
</div>
$('#button').click(function(){
$("input[type='file']").trigger('click');
})
$("input[type='file']").change(function(){
$('#val').text(this.value.replace(/C:\\fakepath\\/i, ''))
})