Visibilty Example

Visibilty Example

Show and Hide Text

<html>

<body>

<p>This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text.</p>

<input value=”Hide text” onclick=”document.getElementById(‘p1’).style.visibility=’hidden'” />

<input value=”Show text” onclick=”document.getElementById(‘p1’).style.visibility=’visible'” />

</body>

</html>

OUTPUT:

This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text.

DOWNLOAD SOLUTION HERE