Mehur Mehur - 1 year ago 99
HTML Question

How to change upload text language?

I am using codeigniter 3.1 .

How to change upload text language ?

<input type="file" name="file" />

I want to change
Choose File - No file chosen
default English language to other.

I tried this but not worked.

<input type="file" name="file" value="new language" />

enter image description here

Answer Source

Try this,


    <input type='file'/>
    <span id='val'></span>
    <span id='button'>Select File</span>



   $('#val').text(this.value.replace(/C:\\fakepath\\/i, ''))


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download