I\'m trying to simulate a click on an input tag, through the click on an anchor tag, this way I can hide the input and wrap an image inside the anchor tag.
anchor
Use:
document.getElementById('user_avatar').click();
Tested and it works.