Guest 2fast4murk Posted May 1, 2006 Share Posted May 1, 2006 I'm currently working with forms and want to add a 'browse' button to upload a file from your (local) harddisk. I've used the <input type=file> option but that way I can't change the caption on the button. The thing I want to do is create a custom 'browse' button from which I can edit the caption and after clicking opens a similar dialog to the one from <input type=file>. How can I do this? Link to comment Share on other sites More sharing options...
raimo Posted May 1, 2006 Share Posted May 1, 2006 I'm currently working with forms and want to add a 'browse' button to upload a file from your (local) harddisk. I've used the <input type=file> option but that way I can't change the caption on the button. The thing I want to do is create a custom 'browse' button from which I can edit the caption and after clicking opens a similar dialog to the one from <input type=file>. How can I do this?<{POST_SNAPBACK}> You can do it only by hide original file-input field and then create visible "fake input field" with text input and button or image.Look: http://www.quirksmode.org/dom/inputfile.html Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now