$.ajax({ type: "POST", url:'inc/favsil.php', data: { id: id }, success: function(data) { $('tr#sg').html(data); }});