skip to Main Content

Html – How to open dropdown menu from outside button

Opening bootstrap dropdown menu from button inside table using function xonclick() { const dropdownButton = document.getElementById('settingsDropDown'); const dropdownMenu = document.getElementById('seadedMenyy'); // Position the dropdown near the clicked button const clickedButton = document.getElementById('grid_muu'); const buttonRect = clickedButton.getBoundingClientRect(); dropdownMenu.style.position = 'absolute'; dropdownMenu.style.left…

VIEW QUESTION
Back To Top
Search