button disabled bootstrap code example

Example 1: bootstarp btn colors










Example 2: bootstrap Outline buttons

In need of a button, but not the hefty background colors they bring? 
Replace the default modifier classes with the .btn-outline-* ones to 
remove all background images and colors on any button.








Example 3: bootstrap Buttons

Bootstrap includes several predefined button styles, each serving its own
semantic purpose, with a few extras thrown in for more control.
Using color to add meaning only provides a visual indication, which will
not be conveyed to users of assistive technologies – such as screen readers. 
Ensure that information denoted by the color is either obvious from the 
content itself (e.g. the visible text), or is included through alternative
means, such as additional text hidden with the .sr-only class.










Example 4: bootstrap 4 button










Example 5: bootstrap disable button after click

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

Example 6: bootstrap disabled button


Tags: