how to check if a div is active c# code example Example: check if class is active jquery $('li.menu').hasClass('active');