Home » Javascript » Open image dialog box when click on icon

Open image dialog box when click on icon

Posted by: admin June 30, 2018 Leave a comment

Questions:
<label class="label" data-toggle="tooltip" title="Change your avatar">
<img class="rounded" id="avatar" src="https://avatars0.githubusercontent.com/u/3456749?s=160" alt="avatar">
       <input type="file" class="sr-only" id="input" name="image" accept="image/*">
     </label>
Answers: