JSFiddle - React, Tailwind, and code Playground
HTML
<input type="file" name="PicturePath" id="fileUpload" accept=".png,.jpg,.jpeg,.gif,.tif" />
JavaScript
$("input[type=file]").on("change", function () {
alert('hi')
});
<input type="file" name="PicturePath" id="fileUpload" accept=".png,.jpg,.jpeg,.gif,.tif" />
$("input[type=file]").on("change", function () {
alert('hi')
});