开发者

Give a different value to form input

开发者 https://www.devze.com 2023-01-29 14:50 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号