HTML element reader

Read all attributes and jQuery data from an HTML element

by @pixiebrix

How to Use

No instructions provided yet. Have questions?
Ask the PixieBrix Community!


Inputs

Name Required Type Description
No inputs for this brick defined.

Outputs

Name Required Type Description
ref integration
val string, number, array jQuery val() method: get the current value of the element. See https://api.jquery.com/val/
data object
text string The combined text contents of element, including its descendants. See https://api.jquery.com/text/
attrs object
value string, null Element value property: A string containing the value of the element, or the empty string if the input element has no value set.
tagName string
isVisible boolean True if the element is visible
isInViewport boolean True if element is completely in the viewport

Related Tags