I have a decent command of HTML and CSS but a complete newbie when it comes to Javascript.
I have a simple HTML page that I would like to include a button on, to toggle the display of text already wrapped in a span class e.g.
<span class="xxx">TEXT</span>
There are two separate span classes I'm using and ideally, I'd like the click of one button to show/hide both.
Right now I'm using CSS to hide them using the property "Display: none".
Can you show me how to achieve this? Hope this clear, thank you.
classListproperty on them, or setting their inline styling with thestyleproperty. - Taplar