// This selects the first element with that name document.querySelector('[name="your-selector-name-here"]');