I am using php,mysql and ajax to delete record from a table. The problem is that the in MySQL_query it not getting the id it shows \"id= undefined\", i tried to pass the id to t
var rowObj = $(this);
$.ajax({
type: "POST",
url: "suppliernetwork/delete.php",
data: "rowid="+arr[1]+"&supplier="+supplier,
success: function(data){
$('.ajax').html($('.ajax input').val());
$('.ajax').removeClass('ajax');
$(rowObj).parents("tr:first").hide();
}});
this should hide your complete row.