javascript onclick image upload dialog code example
Example: open the file upload dialogue box onclick the image
<input type="file" id="imgupload" style="display:none"/>
<button id="OpenImgUpload">Image Upload</button>
$('#OpenImgUpload').click(function(){ $('#imgupload').trigger('click'); });