Hi all, I am relatively new to jQuery, so sorry if this question has an obvious answer!
Our company just got the designs in for a new feature on our website. It involves uploading a picture, so we need a <input type="file"/> field. However, the design has a nicely styled link (read: image) instead of the normal control. I thought about styling a link and use that as a trigger to a hidden upload field, which would then trigger the file browser once clicked (i.e. in the style of the flickr uploader). However, whilst trying to put a proof of concept together, I couldn't get the file upload browser to open. here is my code: $('#trigger').click(function(){ $('#upload').trigger('click'); }); Any help is really appreciated! Cheers, Gilles P.S: anyone going to @media ajax in london? maybe see you there!