Answers for "dropdown list in bootstrap 4"

0

dropdown bootstrap

<div class="dropdown show">
  <a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropdown link
  </a>

  <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
    <a class="dropdown-item" href="#">Action</a>
    <a class="dropdown-item" href="#">Another action</a>
    <a class="dropdown-item" href="#">Something else here</a>
  </div>
</div>
Posted by: Guest on December-06-2020
0

bootstrap 4 dropdown item list style

$(document).ready(function() {
  $(".dropdown-menu li a").click(function(e) {
    e.preventDefault();
    $(".dropdown-menu li").removeClass('activeTabLink');
    var activeAttr = $(this).parent('li').addClass('activeTabLink');
  });
});
Posted by: Guest on February-22-2021

Browse Popular Code Answers by Language