this is my current html:
<div>
<a href="http://example.com">example.com</a>
</div>
I need to add a new div as a last element of this structure. This is what I want to achieve:
<div>
<a href="http://example.com">example.com</a>
</div>
<div>
added element
</div>
I need to target it by href attribute. This is what I've tried but it's not working:
jQuery('a[href$="http://example.com"]').parent().append('<div>added element</div>');