Do you want to disable your button after clicking the submit / image button?
if you use php , you can use the code below or add disabled="disabled" to disable the button while you save it in your input form.
<?php if (isset($disable) && $disable === true) echo ' disabled="disabled"'; ?>
how to add my code
if you use your line of code with image type:
try:
<form><input type="image" src="/images/arrow.png" id="imageButton" onClick="javascript:autofill();" <?php if (isset($disable) && $disable === true) echo ' disabled="disabled"'; ?> /></form>
Please read this answer from me (jagb) too, if you want to use an image without javascript, the necessary css can be found there too.
jagb
source share