Hey there, I'm dealing with a div tag that looks like this:
<div id = "product-tabs" class="gen-tabs gen-tabs--style1">
Now, I have to add 'accor' to the end of the class section, so it would look like this:
gen-tabs gen-tabs--style1 accor
I was thinking of achieving this using jQuery. Here's what I have so far:
$(window).load(function(){
$(".product-2-square-furniture-leg").parent(".gen-tabs--style1").addClass(".accor");
})
This code is meant to run on a specific page where the body is product-2-square-furniture-leg
. Maybe I'm not getting the path to the element right?