bootstrap 4 list items that have d-flex class do not respond to .hide()?
问题 When I add class d-flex my Bootstrap 4 <ul> list items do not respond to .hide() anymore, even though style="display: none;" is added to the DOM. The d-flex is used for the Bootstrap 4 list badges. Suggestions? // test 1: regular list, no issue $("#myList li:even").addClass("disabled").hide() // <li class="list-group-item" style="display: none;">First item</li> // test 2: list with badges, no response to hide (class "disabled" still works) // just adding class "d-flex" is sufficient to