sadly, browser security doesnt allow styling of file inputs, and also blocks you from setting or getting the value of one.
i had the same problem, but after a bit of research i found out that you cant do it. :( On 11/5/06, George Moschovitis <[EMAIL PROTECTED]> 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/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
