I'm currently working on a new design and I need to retrieve the name of the class from a div element that is positioned above another div element.
Here's an example:
<div class="random name a"></div>
<div class="the name of this class depends on the name of the class above this div"></div>
Is there a jQuery method to achieve this? I've searched around but haven't found any solutions yet.
Thank you very much!