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

Asked

Viewed 1,066 times

3

I have two classes A and B, I need that when you mouse over A what changes is the value, color etc of B.
I don’t know if I can do this in CSS or using Onmouseover.

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 made a here p/ you test http://jsfiddle.net/sneeps_ninja/FyY7D/

  • Maison unfortunately in this case did not work, I think because I have a huge problem, http://answall.com/questions/23290/jqgrid-frozen-columns-duplicando-informa%C3%A7%C3%B5es. Anyway your answer was very clear and in fact is the answer to what I asked, thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.