hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

data-set

Sets the value of a data attribute on an element
Parameter
Type
Description
name
string
The name of the data attribute (without the 'data-' prefix)
value
string
The value to set for the data attribute
return
void
No return value