Jquery prop() method
<html>
<head>
<title>Jquery button remove disabled attribute</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<h1>Jquery button remove disabled attribute</h1>
<button id="b" disabled>click me remove disable attribute</button>
<script>
$('#b').click(function() {
$('#b').prop('disabled', false);
});
</script>
</body>
</html>