だから私は以下のようにajaxリクエストを送信しています
$('a.new_thumb_update').click(function(e)
{
e.preventDefault();
share_id = $(this).attr('share_id');
$.post('http://studeez.net/resource_layout_files/includes/thumbs_up.php',
{share_id:share_id},
function(data)
{
alert(data);
$(this).parent().parent().find('div.thumbs_up').hide();
});
});
コードは、アラート フィードバックを受け取るコールバック関数まで機能します。
$(this).parent().parent().find('div.thumbs_up').hide();
$(this) を実際の要素に置き換えると、機能します。以下に示すように
$('a.new_thumb_update').parent().parent().find('div.thumbs_up').hide();