Reputation: 23141
i have an input tag...
<input type="file" name="upload">
for browsing it makes the button vith value "browse"
(in mozilla)
the question is: how can i change the name of that button? i want it to have the name "select"
instead of "browse"
.
Thanks
Upvotes: 1
Views: 740
Reputation: 344301
Unfortunately the button text of an <input type="file">
is controlled by the browser, and cannot be changed, as far as I know.
In general, fancy file uploaders are often flash-based. However, if you are ready for a challenge, you may want to check out the following QuirksMode article for a few CSS + JavaScript tricks in this direction:
Upvotes: 2
Reputation: 19294
I haven't tried, but can you set the input to display:none and then use background images?
Upvotes: 0