The HTMLInputElement.labels read-only property returns a NodeList of the elements associated with the element. If the element has the type hidden, the property returns null.
HTMLInputElement.labels
MDN Reference