attr
Type:
Default: 'html'
Values:
<string> | <string[]>
Default: 'html'
Values:
It specifies which attribute should be picked over the matched selector:
Any
HTML attribute
is supported, plus the following special cases:- 'text': Returns the combined text content, including its descendants, by removing leading, trailing, and repeated whitespace from a string.
- 'html': Get the HTML content of the matched selector. (Same as 'innerHTML').
- 'val': Get the current value of the matched selector, oriented for select or input fields.
If you specifiy more than one value, they will be used as fallback values:
The first attribute that resolve the value will be used.