How can I check if the class exists in a variável
of jQuery?
jQuery(function($) {
// Captura o atributo para manipulá-lo
var atributo = jQuery(this).parent('.servico').children('.servicos_the_content');
I tried this but it did not work:
if($(atributo)).hasClass('active'){
// faz alguma coisa
}