This needs to be done in the browser with scripts.
Set the disabled attribute on the element to "disabled" when it is clicked:
<button class="singleClick">
The jQuery:
$(".singleClick").on("click", function(){
this.attr("disabled", "disabled");
});
You can remove the disabled status later with:
$(element).removeAttr("disabled");