bootstrap disable button after click

To disable a button after it is clicked in Bootstrap, you can use JavaScript to add the disabled attribute to the button element. Here's an example:

<button id="myButton" onclick="disableButton()">Click Me</button>

<script>
function disableButton() {
  document.getElementById("myButton").disabled = true;
}
</script>

In this example, the button element has an id attribute of "myButton". The onclick attribute calls the disableButton() function when the button is clicked. Inside the function, the disabled attribute of the button element is set to true, which disables the button.

Please note that this code snippet assumes you have already included the Bootstrap library in your HTML file. If you haven't, make sure to include the necessary Bootstrap CSS and JavaScript files in your project.

I hope this helps!