SelectionAttr extension

on

Methods

attrGet(String name) String?
Returns the current value of the specified attribute for the first (non-null) element in the selection.
attrSet(String name, Union2<EachCallback<String?>, String>? value) Selection
Sets the attribute with the specified name to the specified value on the selected elements and returns this selection.