Suppose i have an HTML table. How do I use JQuery events on this?
- by alex
<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('');
});