PP.hasClass

Syntax

hasClass(element: HTMLElement, value: String);

Parameters

element. Page markup element.

value. Name of CSS class.

Description

The hasClass method indicates if specified markup element contains specified CSS class.

Comments

This method returns True if the specified markup element contains specified CSS class, otherwise it returns False.

Example

The example of use is given in the with description of the static method PP.addClass.

See also:

PP