The only reliable way of doing it that I've ever come across is ppk's 
http://www.quirksmode.org/dom/inputfile.html Styling an input type="file" ,
but I've never used it myself, so I can't speak for its compatibility in
practice. It seems fairly solid, though (most of his stuff is!), and it
should be quite simple to port the JS aspect of it to a jQuery plugin, if
necessary... I might have a look at doing that myself.

Hope that helps,
Paul


George Moschovitis wrote:
> 
> Dear devs,
> 
> I am a new user of this wonderful library. I have a problem I would
> like to solve using JQuery. I have a form with a file input field:
> 
> <input type="file" ... />
> 
> I would like to style this input field. My solution would be to make
> this field hidden, and add another (styled) text input field plus an
> 'upload' image button. Then I would like the image button click
> handler to force a click on the hidden file input field.
> 
> Can this be done with JQuery (and work with both IE and Firefox)? Is
> there an alternative, better solution to style file input fields?
> 
> thanks in advance for your help,
> George.
> 
> -- 
> http://www.gmosx.com
> http://www.nitroproject.org
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Styling-a-file-input-control-tf2576780.html#a7187557
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to