I would like raise the onchange event of the input file type by clicking a button:
Example:
<input id="File1" type="file" onchange="show(this)" />
<input id="Button1" type="button" value="button" onclick="butclick()" />
<input id="Button2" type="button" value="button" onclick="document.getElementById('File1').onchange()" />
<input id="Button3" type="button" value="button" onclick="document.getElementById('Button1').onclick()" />
<script>
function butclick() {
alert('yes');
}
</script>
I can trigger the click event of another button but not the onchange event of an input file.