Answers for "when i click i=on image it should open the file upload dialog box"

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

Code answers related to "when i click i=on image it should open the file upload dialog box"

Browse Popular Code Answers by Language