I have this small problem with a website I'm designing. It's fairly over, but I think the jQuery is the problem here.
The code is as follows:
<img src="files/register_page/upload_photo/body.png" id="upload">
<input type="file" name="file_upload" id="file_upload" style="visibility:hidden;">
And the jQuery is the following, in the part of the document:
$(document).ready( function(){
$("#upload").click( function(){
$('#file_upload').click();
});
});
However, upon clicking the img, nothing happens, where a file upload dialog should pop up. Please, if you need any more information or something, let me know. If not, what could the problem be here? I'm using jQuery 1.8.0.