- qs<K>(selectors): null | HTMLElementTagNameMap[K]
Type Parameters
- K extends keyof HTMLElementTagNameMap
Returns null | HTMLElementTagNameMap[K]
- qs<K>(selectors): null | SVGElementTagNameMap[K]
Type Parameters
- K extends keyof SVGElementTagNameMap
Returns null | SVGElementTagNameMap[K]
- qs<K>(selectors): null | MathMLElementTagNameMap[K]
Type Parameters
- K extends keyof MathMLElementTagNameMap
Returns null | MathMLElementTagNameMap[K]
- qs<K>(selectors): null | HTMLElementDeprecatedTagNameMap[K]
Type Parameters
- K extends keyof HTMLElementDeprecatedTagNameMap
Returns null | HTMLElementDeprecatedTagNameMap[K]
- qs<E>(selectors): null | E
Type Parameters
- E extends Element = Element
Returns null | E
Returns the first element that is a descendant of node that matches selectors.
MDN Reference