I have two element <input>
and <a>
below:
<input type="file" accept=".jpg, .png, .gif" class="inputUpload" id="fileUpload" onchange="changeAvatar()" onclick="selectFile()" />
<a onclick="selectImage()" href="javascript:void(0);" class="pull-right">Select image</a>
How to call event onchange
and onclick
from function:
function selectImage(){ };