I use this to take the name of the body class:
$("body").attr("class")
In source code I can see this:
<body class="mybodyclass">
but when I use the first command in console I take this:
"mybodyclass wrap-in wrap-out"
From the result how it could be possible to take the first word only?