I have a color picker that triggers the following jQuery script:
//event.color.toHex() = hex color code
$('#iframe-screen').contents().find('body a').css('color', event.color.toHex());
This script will change the color of all links within #iframe-screen. However, I want to exclude links that are inside #menu without having to loop through each link.
Is there a way to apply the CSS above to all links that are not within #menu? For example:
$('#iframe-screen').contents().find('body [not-parent]#menu a').css('color', event.color.toHex());
The #menu consists of a typical unordered list menu:
<ul id="menu">
<li><a href="">dont change</a></li>
<li><a href="">dont change</a></li>
<li><a href="">dont change</a></li>
</ul>
<a href="">change</a>
<div><a href="">change</a></div>