Basically, I need to hover over the anchor to display div-data-meta. Works fine, but when there are multiple td and divs, one hover displays them all. My question is: how can I show / hide them individually? The following are snippets of code.
<td>
<a href="#">Item</a>
<div class="data-meta">
<a href="#">Edit</a> | <a href="#">Disable</a> | <a href="#">Delete</a>
</div>
$(document).ready(function(){
$("td").hover(
function () {
$('.data-meta').show();
},
function () {
$('.data-meta').hide();
});
});
source
share