Wouldn't that break the dropdown functionality if you mess with the css directly to show/hide the login dropdown?
Why not just trigger a click event to the button and let the button do its thing to change the CSS to hide/show the login dropdown? No need to worry or know what css class to use or know how the dropdown is hidden or shown. Just programmatically click the button as if user is clicking it.
|