I'm trying to remove a tablerow. It seems that it only gets to readyState 1
Here it is:
var element = $('table:nth-child(5)>tbody>tr:nth-child(5)');
$.ajax({
success: function(){
element.remove();
}
});
I'm trying to remove a tablerow. It seems that it only gets to readyState 1
Here it is:
var element = $('table:nth-child(5)>tbody>tr:nth-child(5)');
$.ajax({
success: function(){
element.remove();
}
});
Copyright © 2021 Jogjafile Inc.
In the 'readystate' success method, the element will not be defined. Define the same in the success as shown below.