admin管理员组

文章数量:1392007

I'm trying to add another class name to a parent div of an article. I want to select 2 class names then add another class name to the parent. I'm pretty new to js/JQuery this is what i've not so far.

jQuery(document).ready(function(){
jQuery('.random-1 .category-49').parent('div').addClass('double-width');
});

本文标签: javascriptSelect parent from child class name then add another class name to the parent