Basic Elements / Dropdown

Single Button Dropdown

Menu Alignment

How To Use

Basic use

$('.dropdown-toggle').dropdown()
data-toggle="dropdown" //still required

Regardless of whether you call your dropdown via JavaScript or instead use the data-api. data-toggle="dropdown" is always required to be present on the dropdown’s trigger element.

$('#myDropdown').on('show.bs.dropdown', function () {
    // do something...
})

For more Information please follow the Official Documentation