I have two classes A and B, I need when I hover over what changes the value, color etc. of B.
I do not know if I can do this in CSS or using OnMouseover.
I have two classes A and B, I need when I hover over what changes the value, color etc. of B.
I do not know if I can do this in CSS or using OnMouseover.
Come on, I'll give you an example
<style>
.azul{color: blue;}
</style>
<script>
$('#a').hover(function(){
$('#b').toggleClass('azul'); // muda a cor do texto em B quando A estiver hover
$('#b').text('novoValor'); // muda o valor de B quando A estiver hover
});
</script>
I did one here for you to test link