i have this jquery code:
$(document).ready(function(){
//Hide the tooglebox when page load
$(".visit").hide();
$("#suppliers-table td").hover(function(){
$(".visit").show();
});
});
for this html:
<table id="suppliers-table">
<tr>
<td><p class="suppliers-name">ASD</p><a class="visit" href="#">Visit Website</a></td>
<td><p class="suppliers-name">ASD</p><a class="visit" href="#">Visit Website</a></td>
<td><p class="suppliers-name">ASD</p><a class="visit" href="#">Visit Website</a></td>
<td><p class="suppliers-name">ASD</p><a class="visit" href="#">Visit Website</a></td>
<td><p class="suppliers-name">ASD</p><a class="visit" href="#">Visit Website</a></td>
</tr>
What i need to happen is when they hover over a td for the hyperlink:"visit website" to appear and the go again when the hover off. And only appear for that td, not all of them
I know the jquery is wrong above but if someone can correct it that would be great