0

Well I am developing a simple page in html, in which I am using input element type="file". By default we get a textbox and a button to browse a file from the system. Default label of this button is Browse. But I want to change the label of this button with some other name, like 'Open' or 'Select File'. But I don't have any idea how to accomplish this.

Does anyone know how to do this?

Julien Roncaglia
  • 17,397
  • 4
  • 57
  • 75
Arvind
  • 15
  • 1
  • 5

3 Answers3

3

You have to use an image and overlay it on top of the button. then use Javascript to clone the file click onto the image. Does this even make sense? I'm a bit hungover.
Anyway, here's a ncie jQuery plugin http://www.appelsiini.net/projects/filestyle/demo.html

peduarte
  • 1,667
  • 3
  • 16
  • 24
0

You can't. You could if you would use Flash or Java for handling file uploads.

Jan Hančič
  • 53,269
  • 16
  • 95
  • 99
0

you can not change file control "Browse" text, you can do this if you use jquery file upload...

Sonal Khunt
  • 1,876
  • 12
  • 20