Why I can't change bootstrap modal backdrop opacity with JavaScript? – Jquery
I am trying to change Bootstrap backdrop opacity using JS or jQuery (Bootstrap 4.6): // JavaScript let modalBackdrop = document.getElementByClassName("modal-backdrop"); modalBackdrop.style.opacity = "0.9 !important"; or // jQuery let modalBackdrop = $(".modal-backdrop"); modalBackdrop.css("opacity", "0.9 !important"); I want to do it with…