I have the following code generated by Simple Html Dom Parser:
<a href='....'>
<div class='test'>...</div>
</a>
How can I add a class to the a element? I presume that I can do this with Jquery?
I only need to add a class to the elements that have a div with class 'test' as descendant.