Hello,
I have this code with 2 buttons to show and hide text. But i want only to show the hidden text using only 1 button.
Can anyone help me ?
<p id=“p1”>Text text text…text .</p>
<input type=“button” value=“Hide text” onclick=“document.getElementById(‘p1’).style.visibility=‘hidden’” />
<input type=“button” value=“Show show” onclick=“document.getElementById(‘p1’).style.visibility=‘visible’” />