var name = this.name;$("input[name=" + name + "]").hide();或者,您可以执行以下操作。
var id = this.id;$('#' + id).hide();或者,您也可以发挥作用。
$("#" + this.id).slideUp();如果要永久删除整个元素,请从页面中删除。
$("#" + this.id).remove();您也可以在此使用它。
$("#" + this.id).slideUp('slow', function (){ $("#" + this.id).remove();});


