https://tutorial.eyehunts.com/js/how-to-disable-a-button-in-javascript-based-on-condition/
How to disable a button in JavaScript based on condition