Suppose i have an HTML table. How do I use JQuery events on this?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-03-24T00:23:23Z Indexed on 2010/03/24 0:33 UTC
Read the original article Hit count: 273

Filed under:
|
<table>
    <tr class="myRow"><td class="col1"></td><td class="col2"></td></tr>
    <tr class="myRow"><td class="col1"></td><td class="col2"></td></tr>
    <tr class="myRow"><td class="col1"></td><td class="col2"></td></tr>
    <tr class="myRow"><td class="col1"></td><td class="col2"></td></tr>
    <tr class="myRow"><td class="col1"></td><td class="col2"></td></tr>
</table>

How do I make the appropriate col1 fill with the letters "ABC" when the user rollovers the row?

And then disappear the "ABC" when the user moves the mouse away from that row?

So far, I got this. I solved it.

  $(".ep").hover(function(){
        $(this).find('td.playButtonCol').html('PLAY');
    },function(){
        $(this).find('td.playButtonCol').html('');
    });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript