I am currently exploring ways to make one text area disappear while another one appears in its place.
With limited knowledge of Javascript and just starting my journey into HTML and CSS, I am reaching out to the forum for assistance or guidance on the right path.
I have included a snippet of the code below for clarity.
On clicking "2.svg," it should change the display property of "textarea.one's and three's" from "block" to "none."
Clicking "3.svg" should toggle the visibility of "textarea.two's and one's" from "block" to "none."
Similarly, selecting "1.svg" should switch the display status of "textarea.two's and three's" from "block" to "none."
I hope this explanation is clear, and I apologize if seeking full code assistance without attempting on my own is not allowed on this platform.
Thank you in advance to anyone who takes the time to read this!
<div>
<img id="header1" src="/1.svg" alt="Open Menu" class="menu">
<img id="header1" src="/2.svg" alt="Open Menu" class="menu">
<img id="header1" src="/3.svg" alt="Open Menu" class="menu">
</div>
<div class="textniz">
<textarea class="one" id="myInput" name="myInput" readonly>
Line one
Line two
Line three</textarea>
</div>
<div class="textniz">
<textarea class="two" id="myInput" name="myInput" readonly>
Line four
Line five
Line six</textarea>
</div>
<div class="textniz">
<textarea class="three" id="myInput" name="myInput" readonly>
Line seven
Line eight
Line nine</textarea>
</div>