bootstrap dropdown don't close on click code example
Example: bootstrap prevent dropdown from closing on click
// If an element inside a dropdown menu has the "keep-open" class,
// disable closing the dropdown menu.
$(document).on('click.bs.dropdown.data-api', '.keep-open', function (e) {
e.stopPropagation();
});