私のコードで間違っていること:
$.each($("input[value='"+id+"']"), function(index, value) {
alert($(this).val());
$("input[value='"+$(this).val()+"']").prevAll('.t-item:first').remove();
});
HTML スキーマ:
ps私は自分のページの他の場所に同じhtmlを持っているので「それぞれ」をやっているので、両方の場所から削除したい
この HTML の例では、私の ID は 249 または 293 です。