JSFiddle - React, Tailwind, and code Playground
HTML
<html><head>
</head>
<body><form method="post" enctype="multipart/form-data">
<input type="file" name="image_1" />
<input type="submit" name="upload_photo" id="upload_photo" />
</form>
</body></html>
JavaScript
$(document).ready(function () {
$('#upload_photo').click(function () {
$(this).attr("disabled", "disabled");
$(this).attr("value", "Please wait while the stuff downloads.");
return false;
});
});