How can I improve the following so it works in multiple browsers?
$('#img').click(function() {
$('input[type=file]').click();
});
So when I click an image it will allow to select a file to upload. On the css I did the following:
input[type="file"]{display:none;}
Tried it on safari 5.1.2 & opera 11.61 and it did not work.... Test it on firefox and ie8 and it worked...