I'm trying to get the class of an element but i don't know the method that will do it. HTML:
<div class="one"></div>
jQuery:
$(document).ready(function() {
var divclass = // Over here
console.log(divclass)
});
Can anyone help me? NOTE: I'm trying to log the class of the div with the class 'one'.