beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

QuerySelector_v2 Op



QuerySelector
Namespace: Ops.Html

Op author: tim

Selects an element in the DOM


If you want to do something with an element, you can get it from the DOM using QuerySelector. See developer.mozilla.org – querySelector.



Inputs

Update (Trigger)
Query (String)

E.g. ".some-classname", '#some-id' or "footer"

Mode index (integer /Number)
Type index (integer /Number)
Document (String)

Outputs

Element (Object)

The first element which can be found using the query or null (no results)


Caught a mistake or want to contribute to the documentation?

Edit Documentation 

Example: QuerySelector and QuerySelectorAll


Patches using QuerySelector_v2

  • Examples
  • Public
  • My Patches

Changelog


created op
2020-02-19 - tim