Answers for "how to get image in file tag onclick jquery"

2

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'); });
Posted by: Guest on August-08-2020
0

how to enable file input on click on image

<input type="file" id="imgupload">
<a href="#" onclick="$('#imgupload').trigger('click'); return false;">Upload file</a>
Posted by: Guest on October-15-2020

Code answers related to "how to get image in file tag onclick jquery"

Browse Popular Code Answers by Language