how to enable file input on click on image

Solutions on MaxInterview for how to enable file input on click on image by the best coders in the world

showing results for - "how to enable file input on click on image"
Miracle
13 Feb 2019
1<input type="file" id="imgupload" style="display:none"/> 
2<button id="OpenImgUpload">Image Upload</button>
3
4$('#OpenImgUpload').click(function(){ $('#imgupload').trigger('click'); });
Hajar
06 Mar 2017
1<input type="file" id="imgupload">
2<a href="#" onclick="$('#imgupload').trigger('click'); return false;">Upload file</a>
queries leading to this page
file upload using javscript onclickonclick button dialog with images htmljquery open file dialog on button clickopen file explorer js from imageupload image dialog boxonclick image trigger file picker javascripthow to set onclick for image as a input type 3dfilehow to set input type file for image onclickonclick image upload fileopen file dialog on button click jqueryopen the file upload dialogue box onclick the imageattach onclick file to imghow to set image in file tag onclick jqueryevent triggered on image upload img tag javascriptopen browse file on click of imagesopen file upload dialog box and upload image javascriptclicking an image clicks file upload insteadonclick file upload javascriptwindow open file uploadonclick image select input filebutton onclick file uploadopen upload javacripthow to enable file input on click on imagehow to open file upload dialog box on button clickon button click open file upload controljavascript change image onclick event with view uploaded imagefile upload onclick javascriptopen file explorer to upload image html codeopen a document when click on image htmljquery code to upload an image onclick in javascriptonclick upload fileon image click open file uploadonclick button to upload image jquerybutton open file upload jsjs onclick upload fileupload image onclick javascriptjavascript onclick image upload dialoghandle image click file uploaddiv box on click file uploadopen file upload dialog on button clickjavascript open file on image clickdiv that acts as file upload onclickhow to upload image using onclick event javascripthtml how to open upload file dialoghtml button onclick upload fileload image on click file input jquerywhen click on image open file browser htmlupload image without input type filehow to open file upload in dialog box using htmljavascript click browse imagewhen i click i 3don image it should open the file upload dialog box how to get image in file tag onclick jqueryhow to enable file input on click on image