Removing an attribute on keydown jQuery
Got an accordion and I’m trying to add an accessibility feature for screen reader users only whereby if a user’s cursor is inside the component and they press the down arrow key, it removes the “inert” attribute of the next section. Please don’t ask why I’m making things inert, etc., or why I’m not just removing the class that makes it inert on keypress. I have my reasons. I’m not sure if you can even do that if the user isn’t focused on a particular element inside the component, but either way, it’s not working now (focused or not):