bootstrap enable disable button code example

Example 1: bootstrap disable button after click

$("#buttonid").on("click", function() {
    $(this).prop("disabled", true);
});

Example 2: bootstrap disabled button

<button type="button" class="btn btn-lg btn-primary" disabled>Primary button</button>
<button type="button" class="btn btn-secondary btn-lg" disabled>Button</button>

Example 3: bootstrap buttons Disabled state

Make buttons look inactive by adding the disabled boolean attribute to any
<button> element.
<button type="button" class="btn btn-lg btn-primary" disabled>Primary button</button>
<button type="button" class="btn btn-secondary btn-lg" disabled>Button</button>

Tags:

Html Example