Results for “attribute”
Small, practical examples. Search by task or narrow things down below.
Attach a custom data attribute
HTML: Learn how to attach a custom data attribute in a complete browser example.
HTML✓ Tested
Bind a custom data attribute
Bind a custom data attribute with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Bind a table-cell attribute
Bind a table-cell attribute with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Bind an accessibility attribute
Bind an accessibility attribute with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Copy a directory while preserving attributes
Linux Commands: Use cp -a for a recursive local copy that preserves links and ordinary file attributes.
Linux Commands✓ Tested
Read a data attribute
Read an element data attribute with jQuery data.
jQuery✓ Tested
Read a data attribute from the current target
Read a data attribute from the current target with a small React component and explicit browser behavior.
React✓ Tested
Refresh a cached data attribute deliberately
jQuery: After the first read, data caches a parsed value; removeData forces a new attribute read.
jQuery✓ Tested
Remove an optional attribute entirely
jQuery: removeAttr removes the attribute instead of setting a string that might still activate it.
jQuery✓ Tested
Set an element attribute
Update an HTML link using jQuery attr.
jQuery✓ Tested
Set an HTML attribute
jQuery: Learn how to set an HTML attribute in a complete browser example.
jQuery✓ Tested
Declare LF normalization for a file type
Git: A gitattributes rule records text normalization expectations for matching paths.
Git✓ Tested