I want to edit style of a custom JS dropdown and see live preview, I want to keep the dropdown open while I’m styling it. Is there a way to keep it open?
Also you can handle it with JavaScript. window.onload = function() { document.getElementById('dropdown').click(); }
Denny Trebbin
Lead Fullstack Developer. Experimenting with bleeding-edge tech. Irregularly DJ. Hobby drone pilot. Amateur photographer.
In Google Chrome, inspect the element (aka open DevTools), make sure to select the correct HTML representation and then under
Stylesfind the:hovsymbol, click on it and select the appropriate 'open' state.Firefox has the same feature.
If your dropdown element doesn't open via CSS pseudo classes, extract your JS code and manipulate its state to see it open all the time.