Now for some reason i can't get this code to work When i move the mouse over < tr id='$id'> i want the #remove_$id to be showing and then hidden when the mouse is moved off
jQuery Kod:
$(function() {
var id = this.id;
$("tr").hover(function() {
$("#remove_" + id).show();
}, function() {
$("#remove_" + id).hide();
});
});
PHP KODU:
$result = mysql_query("SELECT * FROM wall WHERE uid='$myid' ORDER BY id DESC") or die (mysql_error());
while ($row = mysql_fetch_array($result)) {
$id = $row['id'];
$uid = $row['uid'];
$fid = $row['fid'];
$action = $row['action'];
echo "< table width='467' border='0' align='left' cellpadding='0' cellspacing='0'>
< tr id='wall_$id'>
< td width='18' height='25'> < /td>
< td width='396' valign='top' class='txt'>RickStar has upload new photos. - < span class='comment'>
< a href='#'>Comment< /a>< /span>< br />< /td>
< td width='53' valign='top'>< span class='txt'>
< div id='remove_$id' class='mydiv'>Remove< /div>
< /span>< /td>
< /tr>
< /table>";
}