Run
Online Code Editor
jQuery .hasClass() function Example
Red
Green
Green Red
Blue