0
Hello, I would like your help in a problem that I have not found the solution. 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 by clicking a button:
b {
display: none;
}
In short, I would like to know how to hide the elements within <b></b>
by clicking a button.
I recommend using $(this) to reference the object itself.
– Mauro Alexandre
True, but I’ve had some problems with function scope so I prefer to refer anyway.
– Maycon F. Castro