JQuery addclass to another div (but not parent) if no data is found
<p>I have this to add a class to the main table that the report is in if there is no data returned. </p>

<p><code>$('#report-area table td:contains("Sorry, your search did not return any data")').parents('#report-area').addClass('no-report-data')</code></p>

<p>However, I have another div area <code>"#report-footer"</code> but it's not inside <code>#report-area</code>. I'd like to also add the <code>.no-report-data</code> class to <code>"#report-footer"</code> as well but in this case I don't think the <code>.parents</code> selector will work. Is there another selector I can use to do this?</p>
