Issue
Is there a way to hide the browse button and only leave the text box that works in all browsers?
I have tried setting the margins but they show up different in each browser
Solution
No, what you can do is a (ugly) workaround, but largely used
- Create a normal input and a image
- Create file input with opacity 0
- When the user click on the image, you simulate a click on the file input
- When file input change, you pass it's value to the normal input (so user can see the path)
Here you can see a full explanation, along with code:
http://www.quirksmode.org/dom/inputfile.html
Answered By - Ortiga
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.