Saltar al contenido principal

Function: useRemoveAttribute()

useRemoveAttribute(target, attr): void

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

Removes an attribute from the target element.

Parameters

target

string | Element

A CSS selector string or an Element instance.

attr

string

The attribute name to remove.

Returns

void

Example

useRemoveAttribute("input", "disabled");