Skip to content
0

katanakit-js / useRemoveAttribute

Function: useRemoveAttribute() ​

ts
function useRemoveAttribute(target, attr): void;

Defined in: src/infrastructure/dom/dom.service.ts:301

Removes an attribute from the target element.

Parameters ​

ParameterTypeDescription
targetstring | ElementA CSS selector string or an Element instance.
attrstringThe attribute name to remove.

Returns ​

void

Example ​

ts
useRemoveAttribute("input", "disabled");

Released under the MIT License.