hasClass

inline fun Element.hasClass(cssClass: String): Boolean(source)

Deprecated

Warning since 1.4

Error since 1.6

This API is moved to another package, use 'kotlinx.dom.hasClass' instead.

Replace with

import kotlinx.dom.hasClass
this.hasClass(cssClass)

Returns true if the element has the given CSS class style in its 'class' attribute

Since Kotlin

1.1