Skip to content

hasClass()

ProgramistaZpolski edited this page Jan 10, 2021 · 1 revision

hasClass() Checks if an element has a specified class.

h("h1").hasClass("badge"); // Checks if element has a badge class

Clone this wiki locally