toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.dom
/
ParentNode
/
querySelector
query
Selector
open
fun
<
T
:
HTMLElement
>
querySelector
(
selectors
:
HtmlTagName
<
T
>
)
:
T
?
(
source
)
Returns the first element that is a descendant of node that matches selectors.
MDN Reference
open
fun
<
T
:
SVGElement
>
querySelector
(
selectors
:
SvgTagName
<
T
>
)
:
T
?
(
source
)
open
fun
<
T
:
MathMLElement
>
querySelector
(
selectors
:
MathMLTagName
<
T
>
)
:
T
?
(
source
)
open
fun
querySelector
(
selectors
:
String
)
:
Element
?
(
source
)