fileUpload: A Cosmetic Extension of the File Selector
File upload fields are notoriously hard to mark up. This example is a simple way to fake it.
The example below overlays a transparent file upload field on top of intert placeholder.
A small script transfers the filename to the placeholder after a file is selected.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.fileupload.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: fileUpload.html
- Example Stylesheet: fileUpload.css
Comments on this Article