Hello, I would like your help in a problem that I did not find the solution for. I have this code: (example)
.cifra.mono, .cifra.mono pre {
font: 12pt 'Roboto Mono', monospace;
}
.c_config span {
display: block;
}
.c_config a {
color: #F60;
}
a {
text-decoration: none;
outline: none;
}
.cifra b {
color: #F60;
font-weight: bold;
font-family: 'Roboto Mono', 'Courier New', 'Courier', monospace;
}
strong, b {
font-weight: bold;
}
<section class="cifra mono">
<div class="c_config">
<span>Tom: <a href="#">G</a></span>
<span></span>
<span></span>
</div>
<div itemprop="description">
<pre> <b>G</b> <b>D</b>
Parabéns pra você
<b>G</b>
Nesta data querida
<b>C</b>
Muitas felicidades
<b>D</b> <b>G</b>
Muitos anos de vida
<b>G</b>
Muitos anos de vida
</pre></div></section>
And I'd like to know how I could add this style when I clicked a button:
b {
display: none;
}
In short, I'd like to know how to hide elements that are within <b></b>
when you click a button.