jquery-ajax リクエストを送信しましたが、レスポンスは true でした
しかし、ページで選択したアイテムの値を変更する必要がありますが、アクションもアラートアラートも発生しません
お気に入り :
$('#rename').click(function () {
//alert( $(this).closest('td').prev().prev().text());
var name = prompt('enter the new name');
if (name) $.ajax({
url: url() + '/rename',
type: 'POST',
data: { value: name,
id: $(this).closest('tr').find('td :first').attr('value')
},
success: function (result) {
if (result.content == 1) {
//location.reload();
alert(name);
//$(this).closest('td').prev().prev().text(name);
}
}
})
})
その問題を克服するためにどう思いますか?