I am messing around with a small div containing three p's. If the user clicks any of the p's they all disappear. There is a small button to readd the content. I'm looking for a way to remove the content without the div closing up.
Below is that I have.
<script>
$(function ()
{
$("p, button").click(function ()
{
$("p").toggle();
})
});
</script>
<div id="blarg" class="blarg" style="visibility: visible;">
<p class="test" style="display: block;">If you click on me, I will disappear.</p>
<p class="test" style="display: block;">Click me away!</p>
<p class="test" style="display: block;">Click me too!</p>
</div>
<button>Readd</button>