typescript disable a button code example Example: disable button typescript (document.getElementById('button') as HTMLInputElement).disabled = false;