hyTags
HomeHome DocumentationDocumentation

data-delete

Removes a data attribute from an element
Parameter
Type
Description
name
String
The name of the data attribute to remove (without the 'data-' prefix)
return
void
No return value
Test Case:Delete data attribute
    <div data-test="value"></div>
    
    <data-delete name="test">
    <data-exists name="test">
    <assert-false>
    
    👆 Try to change something!
  • Test succeeded Test failed