Add a class to a parent element with JavaScript


$('parent-element-to-add-class-to').parent().addClass("class-you-want-to-add");

Tags: , , ,

The best way to say you like this article is to comment