Console
hyTags
Home
Home
Documentation
Documentation
attribute-delete
Removes an attribute from an element
Parameter
Type
Description
name
String
The name of the attribute to remove
return
void
No return value
Test Case:
Delete attribute
<div id="to-delete"></div>
<div id="to-delete"></div>
<attribute-delete name="id"> <attribute-exists name="id"> <assert-false>
<attribute-delete name="id"> <attribute-exists name="id"> <assert-false>
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed