Setting css of inner html element
I have the following piece of code:
- <td class="myclass"><div class="tooltip">blablabla</div></td>
On mouse-over of <td> I want to display the <div>. I've been trying it this way but it does not work:
- $('.myclass').bind('mouseover', function() {
- $(this).html().css('display', 'block');
- });
- $('.myclass').bind('mouseout', function() {
- $(this).html().css('display', 'none');
- });
What is the correct way to achieve this?
thanks