I have the following problem.
I have a div (id = "outline") on my page.
Now I would like it to be set visible="false when clicked on a button.
The catch is it is way outside the container-div.

I’ve thought about using a Panel and then the Panel.FindControl
but then what happens with the </div>?
Server Side
You dont mention if you want to do this on the server side or via jquery / javascript (client side).
If on the server side set your div to
runat="server"and in the code behind set the visibility to false.So your HTML becomes
<div id="outline" runat="server">and your button click event has a single line:outline.Visible=false;Client Side
If you want to do this via jquery (which you should) just give the div an id and use a selector:
http://api.jquery.com/hide/
$('.target').hide();Or via javascript if you aren’t using jquery:
document.getElementById('outline').style.visibility = 'hidden';