I try to hide the text with a button click, not sure how it is done:..
<script type="text/javascript">
$('.HideButton').click(
function () {
$('#disclaimer').hide();
}
);
</script>
The body:
<p id="disclaimer" > DDDDDDDDDDDDDDDDDDDDDDDDDD</p>
<asp:Button ID="Button1" CssClass="HideButton" runat="server" Text="Hide" />
You need to wrap it in the ready handler, but apart from that it should work:
(demo – slighty changed in order to overcome ASP dependency.) Do note, that the button may have other side-effects, too, cf. @Zootius’ answer.