SyntaxFix
Write A Post
Hire A Developer
Questions
I know this is old, but I recently faced the same issue and I managed to pick the element by accessing only the attribute like this: document.querySelector('[name="your-selector-name-here"]');
document.querySelector('[name="your-selector-name-here"]');
Just in case anyone would ever need this :)