I have a structure like this:
<div class="destination">--here needs to copy the value of destination--</div>
<div class="block-inner clearfix">
<div class="contextual-links-wrapper">
<div class="content"> $ 300 </div>
</div>
I just want to check if <div class="content"> ...</div> is not empty and then copy the value into <div class="destination"></div>…How do I achieve that?
I expect is something like
if (!jQuery(".content:empty")) {
...logic here...
}
Thanks
1 Answer