Skip to content

@serenity-is/corelib / removeClass

Function: removeClass()

removeClass(el, cls): void

Removes a CSS class from an element.

Parameters

el

Element

The element from which to remove the class.

cls

string

The CSS class to remove.

Returns

void

A boolean indicating whether the class was successfully removed.

Defined in

src/base/html.ts:67