Hello I need to access mobile camera using html by a button click, by searching for it on google and stackoverflow I have got some html input tag examples like below. But here what I need is, I have a custom button, when I click on the button I should be able to access my camera but below is a input tag and Im not able to add it to my button. So someone please help me how to do that.
Thanks a lot.
<input type="file" capture="camera" accept="image/*" id="cameraInput" name="cameraInput">