Hello,
I am trying to create a jQuery script that would remove a div/s based on what the class of the parent div is, for example based on the parent div class below i.e one-column
I would like remove divs sideColumn-two
& sideColumn-three
<div id="footer" class="one-column">
<div class="wrapper">
<div class="contentColumn">
Main Content Column
</div>
</div>
<div class="sideColumn-one">
Side Column 1
</div>
<div class="sideColumn-two">
Side Column 2
</div>
<div class="sideColumn-three">
Side Column 2
</div>
</div>
And if the parent's div class is two-column
then it would remove divs sideColumn-one
and sideColumn-three
, and so forth.
Additional Info - The parent divs are called as follows:
one-column
one-column-three
one-column-two-one
two-columns-left-sidebar
two-columns-right-sidebar
two-columns-equal
two-columns-equal-right
two-columns-50
two-columns-stacked-left
two-columns-stacked-right
two-columns-mixed
two-columns-mixed-left
two-columns-mixed-content-left
three-columns-mid
three-columns-equal
three-columns-sidebars-right
three-columns-sidebars-left
four-columns-equal
four-columns-mag
The div contentColumn
is never removed
Any help would be greatly appreciated.
Thanks & Regards
Said