how to check class is active or not in jquery code example Example: check if class is active jquery $('li.menu').hasClass('active');