Give a different value to form input
I am currently working on a Spring project and I need some help. In my JS开发者_运维百科Ps pages I am using spring form tags. For example:
<form:input size="30" type="file" path="attachment" />
I need to know how can I give this tag an option to overwrite the word "browse", so that I can use tag to call different text from .properties file. I've tried to use title, and value options and it never worked.
The reason I need to do it is to show "voir" in case of French language, "浏览" in case of Chinese, and so on.
It is normally provided by the browser and hard to change, so the only way around it will be a CSS/JavaScript hack, see this SO thread.
精彩评论