I have a link button inside a
Bootstrap 4.1 provides a class named example" More is on getbootstrap.com So if you want to make it dynamically, and But be carefull The solution only works on links with classes Sometimes bootstrap recommends using which I have to disable. This works on IE but not working in Firefox and Chrome.
Structure is - Link inside a <
disabled
and aria-disabled="true"
attribute.
Primary link
you don't want to care if it is button or ancor
than
in JS script you need something like that let $btn=$('.myClass');
$btn.attr('disabled', true);
if ($btn[0].tagName == 'A'){
$btn.off();
$btn.addClass('disabled');
$btn.attr('aria-disabled', true);
}
btn btn-link
.card-link
class, in this case solution will not work.