I have been looking around this problem all day but can't find a solution, only people who say it is not possible. Is it really not possible to open a select to show the options programmatically from a JavaScript file?
I have tried to click on it with document.getElementById('mySelect').click();
but nothing happens. I can however use document.getElementById('mySelect').focus();
to focus on the element.
Is there really no way in 2023 to open a select from JavaScript? If so, why?