I have written code to hide row for some criteria. It is working for some time, now it is not working found that jQuery.fn.jQuery.init[1]
is returning jQuery.fn.jQuery.init[1]
for the method .closest('tr')
. Can some one suggest it why this issue is causing?
function applyfilter(ele) {
$.ajax({
cache: false,
async: true,
type: "POST",
dataType: "json",
url: "WebForm4.aspx/Calc",
data: "",
contentType: "application/json; charset=utf-8",
success: function (response) {
if (response.d > range) {
var row = $(ele).closest('tr');
var tr = $(row)[0];
$(row).remove();
return true;
}
},
});
}