How to make a HOVER effect change another selected "object" in jqGrid?

3

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.

    
asked by anonymous 03.07.2014 / 21:33

1 answer

3

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

    
03.07.2014 / 21:46