How can I check if body has specific class? This is my case:
This returns a string of true or false when looking for a specific body class using jQuery's .hasClass:
true
false
.hasClass
$("body").hasClass("your-class-name").toString();