Tie Object's visibility to another object's visibility <p>I'm looking for a way to do what the title says. For example there are two DOM-elements a and b, where a is visible when b is visible and hidden, when b is hidden.</p> <p>Is there a way to do this with jquery?</p> <p>Thanks in advance!</p> <p><strong>Since there seem to be some misunderstandings of what I'm looking for, here is a better description</strong></p> <p>Imagine a website with a variety of DOM-elements. On the left and on the right site are a black and a red dot. The visibility of the black dot is changed via a button-click-callback. In my case, I have no access to this function, so I can't just add <code>$('#red_dot').hide()</code> to it. In this scenario I need to find a way to have the red dot show, when the black dot is shown and hide as soon as the black dot is hidden.</p>