Join Slack
Powered by
is there a built in way to filter the DOM by class...
# javascript
j
jv
12/02/2017, 9:42 PM
is there a built in way to filter the DOM by class name, such that it captures arbitrarily deep elements?
k
konsoletyper
12/02/2017, 9:49 PM
http://kotlinlang.org/api/latest/jvm/stdlib/org.w3c.dom/-parent-node/query-selector-all.html
konsoletyper
12/02/2017, 9:51 PM
It's not Kotlin-related question. Kotlin just allows you to call DOM functions. You can learn DOM APIs on MDN, for example, about querySelectorAll:
https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll
j
jv
12/02/2017, 9:52 PM
I think I found what I was looking for in getElementsByTagName actually. But thank you, I'm new to both Kotlin and JS, learning two things at once 🙂
2
Views
Open in Slack
Previous
Next