So this is how my form looks like:
<form method="post" action="kudos.php">
<input type="hidden" name="hidden_id" value="<?php echo $id ?>">
<input type="hidden" name="hidden_ident" value="<?php echo $myIdent ?>">
<button type="submit" id="kudosBtn" class="kudosBtn"></button>
</form>
If the user press the submit button quick 10 times, the form will submit 10 times also. I tried adding onclick="kudosClick()"
to the submit button and the script below, but that doesn't do anything:
<script>
function kudosClick() {
$(this).attr("disabled", "disabled");
}
</script>
Any tips on how to fix this?