Get Element Attribute is an output block that allows you to retrieve the value of any HTML attribute in elements on a page or form. The output is of type text and is compatible with Value Parameters of type text or of type any.
Element: Value Parameter that accepts either a text value in the form of a CSS Selector or an element value. The Element block comes pre-attached for your convenience but can be removed and customized.
Usage Examples
The image below shows an example of the Mode 1 version where the variable ais set to the value of the href attribute of a Link element.
Example of Get Element Attribute Mode 1
In the next example we see a Mode 2 version where the variable ais set to the value of the href attribute of the same Link element. This time the element is selected using a CSS Selector.