Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
kotlin-browser
/
web.dom
/
ParentNode
/
querySelector
query
Selector
open
fun
<
T
:
Element
>
querySelector
(
selectors
:
TagName
<
T
>
)
:
T
?
(
source
)
Returns the first element that is a descendant of node that matches selectors.
MDN Reference
open
fun
querySelector
(
selectors
:
String
)
:
Element
?
(
source
)