How to override the behavior of Input type="file" Browse button?
Posted
by jay sean
on Stack Overflow
See other posts from Stack Overflow
or by jay sean
Published on 2010-03-12T04:54:15Z
Indexed on
2010/03/12
5:07 UTC
Read the original article
Hit count: 364
Hi All,
I need to change the locale/language of the browse button in input type="file" We have a special function to change the locale of any text to the browser language such as en-US es-MX etc.
Say
changeLang("Test"); // This will display test in Spanish if the browser
// locale is es-MX
What I need to do is to change the language of the browse button. Since it is not displayed, I can't code it like
changeLang("Browse...");
That's why I need to get the code of this input type and override so that I can apply my function to Browse text.
It will be appreciated if you can give a solution for this.
Thanks!
Jay...
© Stack Overflow or respective owner