<script type="text/javascript">
function disableButton(btn){
document.getElementById(btn.id).disabled = true;
alert("Button has been disabled.");
}
</script>
<button id="btn1" onclick="disableButton(this)">$200</button>
I'm trying to remember if a button has been clicked and still be disabled, even if the user reloads the page. I'm fine using JS and jQuery, but I'd like to not use PHP. Is there a way I could use cookies and local storage to remember it?